Add support for emitting ARM file attributes.
[oota-llvm.git] / lib / MC / MCValue.cpp
index c7923da764e239caeff494658f0733f2114927a9..c6ea16ce7b4da3e0b35f4037ac3250bf66d54497 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);
   }
 
@@ -30,5 +32,5 @@ void MCValue::print(raw_ostream &OS) const {
 }
 
 void MCValue::dump() const {
-  print(errs());
+  print(dbgs(), 0);
 }