summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 04:37:46 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 04:37:46 +0000
commitb25de3ff6051d69db87c12c8892cfa37ce6e7d64 (patch)
treea6d3f90619240ea8767377f971680ca7896975d5 /llvm/lib/CodeGen
parent82e57a6b481bc016e85e39f254f3648594ddf8d2 (diff)
downloadbcm5719-llvm-b25de3ff6051d69db87c12c8892cfa37ce6e7d64.tar.gz
bcm5719-llvm-b25de3ff6051d69db87c12c8892cfa37ce6e7d64.zip
eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachOWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp
index 1a7734fe7c1..73b15edba37 100644
--- a/llvm/lib/CodeGen/MachOWriter.cpp
+++ b/llvm/lib/CodeGen/MachOWriter.cpp
@@ -634,7 +634,7 @@ void MachOWriter::InitMem(const Constant *C, uintptr_t Offset,
}
case Instruction::Add:
default:
- cerr << "ConstantExpr not handled as global var init: " << *CE << "\n";
+ errs() << "ConstantExpr not handled as global var init: " << *CE <<"\n";
llvm_unreachable(0);
}
} else if (PC->getType()->isSingleValueType()) {
@@ -732,7 +732,7 @@ void MachOWriter::InitMem(const Constant *C, uintptr_t Offset,
WorkList.push_back(CPair(CPS->getOperand(i),
PA+SL->getElementOffset(i)));
} else {
- cerr << "Bad Type: " << *PC->getType() << "\n";
+ errs() << "Bad Type: " << *PC->getType() << "\n";
llvm_unreachable("Unknown constant type to initialize memory with!");
}
}
OpenPOWER on IntegriCloud