Commit 66e707e
authored
[NFC] Remove getDefaultCallingConvention IsBuiltin (llvm#145904)
ASTContext::getDefaultCallingConvention() was documented as returning
"the default calling convention for the current target", but did not do
this, and was never intended to do this, it has always been controlled
by command-line options to deviate from the target default.
This commit changes ASTContext::getDefaultCallingConvention() to reflect
the fact that it returns the context's default calling convention, not
the target's default calling convention. The IsBuiltin parameter, which
was used to return the target's default calling convention rather than
the context's, is removed in favor of
getTargetInfo().getDefaultCallingConv() which is more explicit of the
intent.1 parent 3b41e4d commit 66e707e
File tree
6 files changed
+48
-46
lines changed- clang
- include/clang
- AST
- Basic
- lib
- AST
- Sema
6 files changed
+48
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2916 | 2916 | | |
2917 | 2917 | | |
2918 | 2918 | | |
2919 | | - | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
2920 | 2925 | | |
2921 | | - | |
2922 | | - | |
| 2926 | + | |
2923 | 2927 | | |
2924 | 2928 | | |
2925 | 2929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | | - | |
1702 | | - | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1703 | 1706 | | |
1704 | 1707 | | |
1705 | 1708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12678 | 12678 | | |
12679 | 12679 | | |
12680 | 12680 | | |
12681 | | - | |
12682 | | - | |
12683 | | - | |
12684 | | - | |
| 12681 | + | |
| 12682 | + | |
| 12683 | + | |
12685 | 12684 | | |
12686 | 12685 | | |
12687 | 12686 | | |
| |||
13065 | 13064 | | |
13066 | 13065 | | |
13067 | 13066 | | |
13068 | | - | |
13069 | | - | |
| 13067 | + | |
13070 | 13068 | | |
13071 | 13069 | | |
13072 | 13070 | | |
13073 | 13071 | | |
13074 | | - | |
13075 | | - | |
13076 | | - | |
13077 | | - | |
13078 | | - | |
13079 | | - | |
13080 | | - | |
13081 | | - | |
13082 | | - | |
13083 | | - | |
13084 | | - | |
13085 | | - | |
13086 | | - | |
13087 | | - | |
13088 | | - | |
13089 | | - | |
13090 | | - | |
13091 | | - | |
13092 | | - | |
13093 | | - | |
13094 | | - | |
13095 | | - | |
13096 | | - | |
13097 | | - | |
13098 | | - | |
13099 | | - | |
13100 | | - | |
13101 | | - | |
13102 | | - | |
13103 | | - | |
13104 | | - | |
| 13072 | + | |
| 13073 | + | |
| 13074 | + | |
| 13075 | + | |
| 13076 | + | |
| 13077 | + | |
| 13078 | + | |
| 13079 | + | |
| 13080 | + | |
| 13081 | + | |
| 13082 | + | |
| 13083 | + | |
| 13084 | + | |
| 13085 | + | |
| 13086 | + | |
| 13087 | + | |
| 13088 | + | |
| 13089 | + | |
| 13090 | + | |
| 13091 | + | |
| 13092 | + | |
| 13093 | + | |
| 13094 | + | |
| 13095 | + | |
| 13096 | + | |
| 13097 | + | |
| 13098 | + | |
13105 | 13099 | | |
13106 | 13100 | | |
13107 | 13101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3477 | 3477 | | |
3478 | 3478 | | |
3479 | 3479 | | |
3480 | | - | |
3481 | | - | |
| 3480 | + | |
| 3481 | + | |
3482 | 3482 | | |
3483 | 3483 | | |
3484 | 3484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
777 | 778 | | |
778 | 779 | | |
779 | 780 | | |
780 | | - | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
0 commit comments