summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachOWriter.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-04 23:14:46 +0000
committerDavid Greene <greened@obbligato.org>2010-01-04 23:14:46 +0000
commit2ff921beef9ab89a9de76c3f6c92f825a97c8d8b (patch)
tree730d4c20c66304bdfdfdfb14e102b59a4d5ab3c1 /llvm/lib/CodeGen/MachOWriter.cpp
parentc4878b132bd5524797131069e0ec60f310146eff (diff)
downloadbcm5719-llvm-2ff921beef9ab89a9de76c3f6c92f825a97c8d8b.tar.gz
bcm5719-llvm-2ff921beef9ab89a9de76c3f6c92f825a97c8d8b.zip
Change errs() to dbgs().
llvm-svn: 92539
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/MachOWriter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp
index 73b15edba37..337eab18277 100644
--- a/llvm/lib/CodeGen/MachOWriter.cpp
+++ b/llvm/lib/CodeGen/MachOWriter.cpp
@@ -33,6 +33,7 @@
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachOWriterInfo.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/Mangler.h"
#include "llvm/Support/OutputBuffer.h"
#include "llvm/Support/ErrorHandling.h"
@@ -634,7 +635,7 @@ void MachOWriter::InitMem(const Constant *C, uintptr_t Offset,
}
case Instruction::Add:
default:
- errs() << "ConstantExpr not handled as global var init: " << *CE <<"\n";
+ dbgs() << "ConstantExpr not handled as global var init: " << *CE <<"\n";
llvm_unreachable(0);
}
} else if (PC->getType()->isSingleValueType()) {
@@ -732,7 +733,7 @@ void MachOWriter::InitMem(const Constant *C, uintptr_t Offset,
WorkList.push_back(CPair(CPS->getOperand(i),
PA+SL->getElementOffset(i)));
} else {
- errs() << "Bad Type: " << *PC->getType() << "\n";
+ dbgs() << "Bad Type: " << *PC->getType() << "\n";
llvm_unreachable("Unknown constant type to initialize memory with!");
}
}
OpenPOWER on IntegriCloud