[PowerPC] Clean up generation of ha16() / lo16() markers
[oota-llvm.git] / lib / MC / MCValue.cpp
index c7923da764e239caeff494658f0733f2114927a9..4393777211e80555e4bee1aec2fa16e6c7f1add1 100644 (file)
@@ -8,11 +8,13 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/MC/MCValue.h"
+#include "llvm/MC/MCExpr.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 
-void MCValue::print(raw_ostream &OS) const {
+void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
   if (isAbsolute()) {
     OS << getConstant();
     return;
@@ -21,7 +23,7 @@ void MCValue::print(raw_ostream &OS) const {
   getSymA()->print(OS);
 
   if (getSymB()) {
-    OS << " - "; 
+    OS << " - ";
     getSymB()->print(OS);
   }
 
@@ -29,6 +31,8 @@ void MCValue::print(raw_ostream &OS) const {
     OS << " + " << getConstant();
 }
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
 void MCValue::dump() const {
-  print(errs());
+  print(dbgs(), 0);
 }
+#endif