[llvm-commits] CVS: llvm/tools/llvm-extract/llvm-extract.cpp
Bill Wendling
isanbard at gmail.com
Wed Dec 6 17:32:03 PST 2006
Changes in directory llvm/tools/llvm-extract:
llvm-extract.cpp updated: 1.32 -> 1.33
---
Log message:
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.
---
Diffs of the changes: (+9 -9)
llvm-extract.cpp | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
Index: llvm/tools/llvm-extract/llvm-extract.cpp
diff -u llvm/tools/llvm-extract/llvm-extract.cpp:1.32 llvm/tools/llvm-extract/llvm-extract.cpp:1.33
--- llvm/tools/llvm-extract/llvm-extract.cpp:1.32 Tue Dec 5 19:18:01 2006
+++ llvm/tools/llvm-extract/llvm-extract.cpp Wed Dec 6 19:30:31 2006
@@ -55,15 +55,15 @@
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
if (M.get() == 0) {
- llvm_cerr << argv[0] << ": bytecode didn't read correctly.\n";
+ cerr << argv[0] << ": bytecode didn't read correctly.\n";
return 1;
}
// Figure out which function we should extract
Function *F = M.get()->getNamedFunction(ExtractFunc);
if (F == 0) {
- llvm_cerr << argv[0] << ": program doesn't contain function named '"
- << ExtractFunc << "'!\n";
+ cerr << argv[0] << ": program doesn't contain function named '"
+ << ExtractFunc << "'!\n";
return 1;
}
@@ -82,9 +82,9 @@
if (OutputFilename != "-") { // Not stdout?
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!
- llvm_cerr << argv[0] << ": error opening '" << OutputFilename
- << "': file exists!\n"
- << "Use -f command line argument to force output\n";
+ cerr << argv[0] << ": error opening '" << OutputFilename
+ << "': file exists!\n"
+ << "Use -f command line argument to force output\n";
return 1;
}
std::ios::openmode io_mode = std::ios::out | std::ios::trunc |
@@ -95,7 +95,7 @@
Out = &std::cout;
}
- llvm_ostream L(*Out);
+ OStream L(*Out);
Passes.add(new WriteBytecodePass(&L)); // Write bytecode to file...
Passes.run(*M.get());
@@ -103,9 +103,9 @@
delete Out;
return 0;
} catch (const std::string& msg) {
- llvm_cerr << argv[0] << ": " << msg << "\n";
+ cerr << argv[0] << ": " << msg << "\n";
} catch (...) {
- llvm_cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
+ cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
}
return 1;
}
More information about the llvm-commits
mailing list