diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:30:42 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:30:42 +0000 |
commit | 06a0702e4033573be42105bc51bbfeff628a00da (patch) | |
tree | f425c8945b64302e985289583e268207c2c5d218 /llvm/lib/AsmParser/LLParser.cpp | |
parent | a96d40999702c46894b6aad419e573a4bbc90673 (diff) | |
download | bcm5719-llvm-06a0702e4033573be42105bc51bbfeff628a00da.tar.gz bcm5719-llvm-06a0702e4033573be42105bc51bbfeff628a00da.zip |
AsmWriter/Bitcode: MDLexicalBlockFile
llvm-svn: 229017
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index e579b431d26..90a680818f9 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3482,9 +3482,21 @@ bool LLParser::ParseMDLexicalBlock(MDNode *&Result, bool IsDistinct) { return false; } +/// ParseMDLexicalBlockFile: +/// ::= !MDLexicalBlockFile(scope: !0, file: !2, discriminator: 9) bool LLParser::ParseMDLexicalBlockFile(MDNode *&Result, bool IsDistinct) { - return TokError("unimplemented parser"); +#define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \ + REQUIRED(scope, MDField, ); \ + OPTIONAL(file, MDField, ); \ + REQUIRED(discriminator, MDUnsignedField, (0, UINT32_MAX)); + PARSE_MD_FIELDS(); +#undef VISIT_MD_FIELDS + + Result = GET_OR_DISTINCT(MDLexicalBlockFile, + (Context, scope.Val, file.Val, discriminator.Val)); + return false; } + bool LLParser::ParseMDNamespace(MDNode *&Result, bool IsDistinct) { return TokError("unimplemented parser"); } |