diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-19 00:37:21 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-19 00:37:21 +0000 |
| commit | 3d62bbacb1aa918944f0cc966381f44e13582b4a (patch) | |
| tree | 11ef811398091ec13469ff532758c8d0ba7d2008 /llvm/lib/AsmParser/LLParser.cpp | |
| parent | ca929f24699a05cf22d4337278e5fea962799632 (diff) | |
| download | bcm5719-llvm-3d62bbacb1aa918944f0cc966381f44e13582b4a.tar.gz bcm5719-llvm-3d62bbacb1aa918944f0cc966381f44e13582b4a.zip | |
IR: Drop scope from MDTemplateParameter
Follow-up to r229740, which removed `DITemplate*::getContext()` after my
upgrade script revealed that scopes are always `nullptr` for template
parameters. This is the other shoe: drop `scope:` from
`MDTemplateParameter` and its two subclasses. (Note: a bitcode upgrade
would be pointless, since the hierarchy hasn't been moved into place.)
llvm-svn: 229791
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 0d748610742..1ea06163c9e 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3515,37 +3515,33 @@ bool LLParser::ParseMDNamespace(MDNode *&Result, bool IsDistinct) { } /// ParseMDTemplateTypeParameter: -/// ::= !MDTemplateTypeParameter(scope: !0, name: "Ty", type: !1) +/// ::= !MDTemplateTypeParameter(name: "Ty", type: !1) bool LLParser::ParseMDTemplateTypeParameter(MDNode *&Result, bool IsDistinct) { #define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \ - REQUIRED(scope, MDField, ); \ OPTIONAL(name, MDStringField, ); \ REQUIRED(type, MDField, ); PARSE_MD_FIELDS(); #undef VISIT_MD_FIELDS - Result = GET_OR_DISTINCT(MDTemplateTypeParameter, - (Context, scope.Val, name.Val, type.Val)); + Result = + GET_OR_DISTINCT(MDTemplateTypeParameter, (Context, name.Val, type.Val)); return false; } /// ParseMDTemplateValueParameter: /// ::= !MDTemplateValueParameter(tag: DW_TAG_template_value_parameter, -/// scope: !0, name: "V", type: !1, -/// value: i32 7) +/// name: "V", type: !1, value: i32 7) bool LLParser::ParseMDTemplateValueParameter(MDNode *&Result, bool IsDistinct) { #define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \ REQUIRED(tag, DwarfTagField, ); \ - REQUIRED(scope, MDField, ); \ OPTIONAL(name, MDStringField, ); \ REQUIRED(type, MDField, ); \ REQUIRED(value, MDField, ); PARSE_MD_FIELDS(); #undef VISIT_MD_FIELDS - Result = GET_OR_DISTINCT( - MDTemplateValueParameter, - (Context, tag.Val, scope.Val, name.Val, type.Val, value.Val)); + Result = GET_OR_DISTINCT(MDTemplateValueParameter, + (Context, tag.Val, name.Val, type.Val, value.Val)); return false; } |

