mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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 << ")";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user