diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-18 21:16:33 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-18 21:16:33 +0000 |
commit | cd8fb60fce21b985b87c0e9b7aaefc43e94f316b (patch) | |
tree | d4a8c0314a18d62015d799566bf50e657c5e39e6 /llvm/lib/AsmParser | |
parent | 2e3b8c29c9b6d1b2d02d94983d258995318410af (diff) | |
download | bcm5719-llvm-cd8fb60fce21b985b87c0e9b7aaefc43e94f316b.tar.gz bcm5719-llvm-cd8fb60fce21b985b87c0e9b7aaefc43e94f316b.zip |
IR: Swap order of name and value in MDEnum
Put the name before the value in assembly for `MDEnum`. While working
on the testcase upgrade script for the new hierarchy, I noticed that it
"looks nicer" to have the name first, since it lines the names up in the
(somewhat typical) case that they have a common prefix.
llvm-svn: 229747
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 47125ca954c..76365ea2233 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3289,8 +3289,8 @@ bool LLParser::ParseMDSubrange(MDNode *&Result, bool IsDistinct) { /// ::= !MDEnumerator(value: 30, name: "SomeKind") bool LLParser::ParseMDEnumerator(MDNode *&Result, bool IsDistinct) { #define VISIT_MD_FIELDS(OPTIONAL, REQUIRED) \ - REQUIRED(value, MDSignedField, ); \ - REQUIRED(name, MDStringField, ); + REQUIRED(name, MDStringField, ); \ + REQUIRED(value, MDSignedField, ); PARSE_MD_FIELDS(); #undef VISIT_MD_FIELDS |