summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-13 01:22:59 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-13 01:22:59 +0000
commit54e2bc6c9b0047c3dbed74922d44e9e4e7b257cc (patch)
treef398462ba09d103b441e052d5d6b511b534ecb1e /llvm/lib/AsmParser/LLParser.cpp
parentaece2dc3f574fb7390e3e23b21eef5387dd8e716 (diff)
downloadbcm5719-llvm-54e2bc6c9b0047c3dbed74922d44e9e4e7b257cc.tar.gz
bcm5719-llvm-54e2bc6c9b0047c3dbed74922d44e9e4e7b257cc.zip
AsmWriter/Bitcode: MDSubroutineType
llvm-svn: 229011
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 33f395a1f5a..24442ef127b 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -3329,7 +3329,14 @@ bool LLParser::ParseMDCompositeType(MDNode *&Result, bool IsDistinct) {
}
bool LLParser::ParseMDSubroutineType(MDNode *&Result, bool IsDistinct) {
- return TokError("unimplemented parser");
+#define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \
+ OPTIONAL(flags, MDUnsignedField, (0, UINT32_MAX)); \
+ REQUIRED(types, MDField, );
+ PARSE_MD_FIELDS();
+#undef VISIT_MD_FIELDS
+
+ Result = GET_OR_DISTINCT(MDSubroutineType, (Context, flags.Val, types.Val));
+ return false;
}
/// ParseMDFileType:
OpenPOWER on IntegriCloud