From 26bcc701a2dd7007a5fd16aae9028b9b57e8eecd Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Thu, 22 Sep 2011 17:44:37 +0000 Subject: [PATCH] Print three closing parentheses when Kind is either VK_Mips_GPOFF_HI or VK_Mips_GPOFF_LO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140316 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsMCSymbolRefExpr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/Mips/MipsMCSymbolRefExpr.cpp b/lib/Target/Mips/MipsMCSymbolRefExpr.cpp index b0e58d53490..548941fbf95 100644 --- a/lib/Target/Mips/MipsMCSymbolRefExpr.cpp +++ b/lib/Target/Mips/MipsMCSymbolRefExpr.cpp @@ -48,8 +48,8 @@ void MipsMCSymbolRefExpr::PrintImpl(raw_ostream &OS) const { OS << Offset; } - if (Kind != VK_Mips_None) - OS << ')'; + if (Kind == VK_Mips_GPOFF_HI || Kind == VK_Mips_GPOFF_LO) OS << ")))"; + else if (Kind != VK_Mips_None) OS << ')'; } bool