summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-extract/llvm-extract.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-16 15:30:09 +0000
committerDan Gohman <gohman@apple.com>2009-07-16 15:30:09 +0000
commitee05152cfa17c2f746134d46f045ef751510abdb (patch)
tree63c5c577f09472c8614c09312eac58786bc89b7e /llvm/tools/llvm-extract/llvm-extract.cpp
parentf199ad6ebc57e3312a41d8750b8621b985cbb25a (diff)
downloadbcm5719-llvm-ee05152cfa17c2f746134d46f045ef751510abdb.tar.gz
bcm5719-llvm-ee05152cfa17c2f746134d46f045ef751510abdb.zip
Convert more tools code from cerr and cout to errs() and outs().
llvm-svn: 76070
Diffstat (limited to 'llvm/tools/llvm-extract/llvm-extract.cpp')
-rw-r--r--llvm/tools/llvm-extract/llvm-extract.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp
index 0fc10df7cef..608ae24560a 100644
--- a/llvm/tools/llvm-extract/llvm-extract.cpp
+++ b/llvm/tools/llvm-extract/llvm-extract.cpp
@@ -69,7 +69,7 @@ int main(int argc, char **argv) {
MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(InputFilename);
if (Buffer == 0) {
- cerr << argv[0] << ": Error reading file '" + InputFilename + "'\n";
+ errs() << argv[0] << ": Error reading file '" + InputFilename + "'\n";
return 1;
} else {
M.reset(ParseBitcodeFile(Buffer, Context));
@@ -77,7 +77,7 @@ int main(int argc, char **argv) {
delete Buffer;
if (M.get() == 0) {
- cerr << argv[0] << ": bitcode didn't read correctly.\n";
+ errs() << argv[0] << ": bitcode didn't read correctly.\n";
return 1;
}
@@ -90,8 +90,8 @@ int main(int argc, char **argv) {
Function *F = M.get()->getFunction(ExtractFunc);
if (F == 0 && G == 0) {
- cerr << argv[0] << ": program doesn't contain function named '"
- << ExtractFunc << "' or a global named '" << ExtractGlobal << "'!\n";
+ errs() << argv[0] << ": program doesn't contain function named '"
+ << ExtractFunc << "' or a global named '" << ExtractGlobal << "'!\n";
return 1;
}
OpenPOWER on IntegriCloud