[llvm-commits] [llvm] r144366 - /llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
Akira Hatanaka
ahatanaka at mips.com
Thu Nov 10 19:58:36 PST 2011
Author: ahatanak
Date: Thu Nov 10 21:58:36 2011
New Revision: 144366
URL: http://llvm.org/viewvc/llvm-project?rev=144366&view=rev
Log:
Fix printing of MCSymbolRegExpr. Needs three closing parentheses for
VK_Mips_GPOFF_HI/LO.
Modified:
llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
Modified: llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp?rev=144366&r1=144365&r2=144366&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp Thu Nov 10 21:58:36 2011
@@ -118,7 +118,10 @@
OS << Offset;
}
- if (Kind != MCSymbolRefExpr::VK_None)
+ if ((Kind == MCSymbolRefExpr::VK_Mips_GPOFF_HI) ||
+ (Kind == MCSymbolRefExpr::VK_Mips_GPOFF_LO))
+ OS << ")))";
+ else if (Kind != MCSymbolRefExpr::VK_None)
OS << ')';
}
More information about the llvm-commits
mailing list