Use std::is_sorted instead of manual loops. NFC
[oota-llvm.git] / lib / MC / MCValue.cpp
index 5512e031b61f065cc9505fd51e88699448b214c8..495a2b6ea5bbff4393a432c21239806a7196a0fe 100644 (file)
@@ -26,11 +26,11 @@ void MCValue::print(raw_ostream &OS) const {
   if (getRefKind())
     OS << ':' << getRefKind() <<  ':';
 
-  getSymA()->print(OS);
+  OS << *getSymA();
 
   if (getSymB()) {
     OS << " - ";
-    getSymB()->print(OS);
+    OS << *getSymB();
   }
 
   if (getConstant())