Commit 0009cdb
[clang][NFC] Remove IgnoreLinkageSpecDecls
The Itanium mangler uses IgnoreLinkageSpecDecls to strip linkage spec
contexts. It doesn't do this consistently, but there is no need for
it to do it at all. getEffectiveDeclContext never returns a linkage
spec, as it either recurses, uses getRedeclContext (which itself
removes the specs), or gets the decl context of non-namespace entities.
This patch removes the function and all calls to it. For safety I add
a couple of asserts to make sure we never get them.
Reviewed By: ChuanqiXu
Differential Revision: https://reviews.llvm.org/D1197481 parent 53eaee6 commit 0009cdb
1 file changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | 865 | | |
874 | 866 | | |
875 | | - | |
876 | | - | |
| 867 | + | |
877 | 868 | | |
878 | 869 | | |
879 | 870 | | |
| |||
978 | 969 | | |
979 | 970 | | |
980 | 971 | | |
981 | | - | |
| 972 | + | |
982 | 973 | | |
983 | 974 | | |
984 | 975 | | |
| |||
1054 | 1045 | | |
1055 | 1046 | | |
1056 | 1047 | | |
1057 | | - | |
| 1048 | + | |
1058 | 1049 | | |
1059 | 1050 | | |
1060 | 1051 | | |
| |||
1070 | 1061 | | |
1071 | 1062 | | |
1072 | 1063 | | |
1073 | | - | |
| 1064 | + | |
1074 | 1065 | | |
1075 | 1066 | | |
1076 | 1067 | | |
| |||
2030 | 2021 | | |
2031 | 2022 | | |
2032 | 2023 | | |
2033 | | - | |
| 2024 | + | |
2034 | 2025 | | |
2035 | 2026 | | |
2036 | 2027 | | |
| |||
0 commit comments