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/IR | |
| 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/IR')
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 27f619b5eed..662771b3278 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -1361,8 +1361,8 @@ static void writeMDEnumerator(raw_ostream &Out, const MDEnumerator *N, TypePrinting *, SlotTracker *, const Module *) { Out << "!MDEnumerator("; FieldSeparator FS; - Out << FS << "value: " << N->getValue(); Out << FS << "name: \"" << N->getName() << "\""; + Out << FS << "value: " << N->getValue(); Out << ")"; } |

