diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:19:14 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-13 01:19:14 +0000 |
commit | f14b9c7cc16f24357f2c7db95e84015f79be8b38 (patch) | |
tree | 5f8cd93291e6a88a92d3b2e005a471f146eaa2c2 /llvm/lib/AsmParser/LLParser.cpp | |
parent | cd6636c3bf05e86396b097ce1623ab9993d5adcb (diff) | |
download | bcm5719-llvm-f14b9c7cc16f24357f2c7db95e84015f79be8b38.tar.gz bcm5719-llvm-f14b9c7cc16f24357f2c7db95e84015f79be8b38.zip |
AsmWriter/Bitcode: MDFile
llvm-svn: 229007
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 992ad1092be..c041a96cfeb 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3242,9 +3242,20 @@ bool LLParser::ParseMDCompositeType(MDNode *&Result, bool IsDistinct) { bool LLParser::ParseMDSubroutineType(MDNode *&Result, bool IsDistinct) { return TokError("unimplemented parser"); } + +/// ParseMDFileType: +/// ::= !MDFileType(filename: "path/to/file", directory: "/path/to/dir") bool LLParser::ParseMDFile(MDNode *&Result, bool IsDistinct) { - return TokError("unimplemented parser"); +#define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \ + REQUIRED(filename, MDStringField, ); \ + REQUIRED(directory, MDStringField, ); + PARSE_MD_FIELDS(); +#undef VISIT_MD_FIELDS + + Result = GET_OR_DISTINCT(MDFile, (Context, filename.Val, directory.Val)); + return false; } + bool LLParser::ParseMDCompileUnit(MDNode *&Result, bool IsDistinct) { return TokError("unimplemented parser"); } |