Before setting scope end marker, pay attention to scope begin marker and existing...
[oota-llvm.git] / lib / MC / MCValue.cpp
index c1222ec88721c1dcb347bc762ef9d890fce8938d..043a49d80c6c83fde1a74679741254d5c102c963 100644 (file)
@@ -19,12 +19,10 @@ void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
     return;
   }
 
-  getSymA()->print(OS, MAI);
+  OS << *getSymA();
 
-  if (getSymB()) {
-    OS << " - "; 
-    getSymB()->print(OS, MAI);
-  }
+  if (getSymB())
+    OS << " - " << *getSymB();
 
   if (getConstant())
     OS << " + " << getConstant();