Commit b8b036a
[HLSL] Treat
HLSL doesn't distinguish `main` from any other function. It does treat
entry points special, but they're not required to be called `main` so we
have a different attribute annotation to mark them.
At the moment this change really just changes the mangling of functions
named `main` in the Itanium mangling.
Fixes #110517
---------
Co-authored-by: Farzon Lotfi <1802579+farzonl@users.noreply.github.com>main as any other function (#110546)1 parent ba340b2 commit b8b036a
File tree
3 files changed
+3
-2
lines changed- clang
- lib/AST
- test
- CodeGenHLSL/builtins
- Options
3 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3302 | 3302 | | |
3303 | 3303 | | |
3304 | 3304 | | |
| 3305 | + | |
3305 | 3306 | | |
3306 | 3307 | | |
3307 | 3308 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments