diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-10 01:08:16 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-10 01:08:16 +0000 |
commit | ed458fa12c70ab5d24d4a746a57273ce18898f4a (patch) | |
tree | 91c82ee1aaca4dbb35cf70c16255391149d5a487 /llvm/lib/AsmParser/LLParser.cpp | |
parent | 55240af6a38769460612678c3a5ed58549436124 (diff) | |
download | bcm5719-llvm-ed458fa12c70ab5d24d4a746a57273ce18898f4a.tar.gz bcm5719-llvm-ed458fa12c70ab5d24d4a746a57273ce18898f4a.zip |
AsmParser: Add stubs for specialized MDNodes, NFC
Well, the exact error from the failed parse will change, but...
llvm-svn: 228644
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 66 |
1 files changed, 61 insertions, 5 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 6bf3d803a21..99be044d865 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3083,13 +3083,11 @@ bool LLParser::ParseMDField(StringRef Name, FieldTy &Result) { bool LLParser::ParseSpecializedMDNode(MDNode *&N, bool IsDistinct) { assert(Lex.getKind() == lltok::MetadataVar && "Expected metadata type name"); -#define DISPATCH_TO_PARSER(CLASS) \ + +#define HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) \ if (Lex.getStrVal() == #CLASS) \ return Parse##CLASS(N, IsDistinct); - - DISPATCH_TO_PARSER(MDLocation); - DISPATCH_TO_PARSER(GenericDebugNode); -#undef DISPATCH_TO_PARSER +#include "llvm/IR/Metadata.def" return TokError("expected metadata type"); } @@ -3146,6 +3144,64 @@ bool LLParser::ParseGenericDebugNode(MDNode *&Result, bool IsDistinct) { (Context, tag.Val, header.Val, operands.Val)); return false; } + +bool LLParser::ParseMDSubrange(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDEnumerator(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDBasicType(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDDerivedType(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDCompositeType(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDSubroutineType(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDFile(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDCompileUnit(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDSubprogram(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDLexicalBlock(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDLexicalBlockFile(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDNamespace(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDTemplateTypeParameter(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDTemplateValueParameter(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDGlobalVariable(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDLocalVariable(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDExpression(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDObjCProperty(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} +bool LLParser::ParseMDImportedEntity(MDNode *&Result, bool IsDistinct) { + return TokError("unimplemented parser"); +} #undef PARSE_MD_FIELD #undef NOP_FIELD #undef REQUIRE_FIELD |