diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-16 15:30:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-16 15:30:09 +0000 |
commit | ac95cc79ac0b899d566cc29c0f646f39c2fa35c0 (patch) | |
tree | a56cfb3fae390064970714d26d13dca84545c1fc /tools/llvm-extract | |
parent | ad60f660c6fd1999a3e21823128d37aca62e9285 (diff) |
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
Diffstat (limited to 'tools/llvm-extract')
-rw-r--r-- | tools/llvm-extract/llvm-extract.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |