From ac95cc79ac0b899d566cc29c0f646f39c2fa35c0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 16 Jul 2009 15:30:09 +0000 Subject: Convert more tools code from cerr and cout to errs() and outs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76070 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-extract/llvm-extract.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/llvm-extract') diff --git a/tools/llvm-extract/llvm-extract.cpp b/tools/llvm-extract/llvm-extract.cpp index 0fc10df7ce..608ae24560 100644 --- a/tools/llvm-extract/llvm-extract.cpp +++ b/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; } -- cgit v1.2.3-18-g5258