Skip to content

Commit

Permalink
Fix printing of MCSymbolRegExpr. Needs three closing parentheses for
Browse files Browse the repository at this point in the history
VK_Mips_GPOFF_HI/LO.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144366 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ahatanak committed Nov 11, 2011
1 parent 15f58c5 commit d5cf5a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) {
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 << ')';
}

Expand Down

0 comments on commit d5cf5a6

Please sign in to comment.