[llvm-commits] CVS: llvm/tools/dis/dis.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 22 15:14:10 PDT 2003
Changes in directory llvm/tools/dis:
dis.cpp updated: 1.29 -> 1.30
---
Log message:
Kill using declarations
---
Diffs of the changes:
Index: llvm/tools/dis/dis.cpp
diff -u llvm/tools/dis/dis.cpp:1.29 llvm/tools/dis/dis.cpp:1.30
--- llvm/tools/dis/dis.cpp:1.29 Wed Apr 16 15:51:35 2003
+++ llvm/tools/dis/dis.cpp Thu May 22 15:13:14 2003
@@ -20,7 +20,6 @@
#include "Support/Signals.h"
#include <fstream>
#include <memory>
-using std::cerr;
// OutputMode - The different orderings to print basic blocks in...
enum OutputMode {
@@ -52,19 +51,19 @@
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename, &ErrorMessage));
if (M.get() == 0) {
- cerr << argv[0] << ": ";
+ std::cerr << argv[0] << ": ";
if (ErrorMessage.size())
- cerr << ErrorMessage << "\n";
+ std::cerr << ErrorMessage << "\n";
else
- cerr << "bytecode didn't read correctly.\n";
+ std::cerr << "bytecode didn't read correctly.\n";
return 1;
}
if (OutputFilename != "") { // Specified an output filename?
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!
- cerr << argv[0] << ": error opening '" << OutputFilename
- << "': file exists! Sending to standard output.\n";
+ std::cerr << argv[0] << ": error opening '" << OutputFilename
+ << "': file exists! Sending to standard output.\n";
} else {
Out = new std::ofstream(OutputFilename.c_str());
}
@@ -87,8 +86,8 @@
if (!Force && std::ifstream(OutputFilename.c_str())) {
// If force is not specified, make sure not to overwrite a file!
- cerr << argv[0] << ": error opening '" << OutputFilename
- << "': file exists! Sending to standard output.\n";
+ std::cerr << argv[0] << ": error opening '" << OutputFilename
+ << "': file exists! Sending to standard output.\n";
} else {
Out = new std::ofstream(OutputFilename.c_str());
@@ -100,8 +99,8 @@
}
if (!Out->good()) {
- cerr << argv[0] << ": error opening " << OutputFilename
- << ": sending to stdout instead!\n";
+ std::cerr << argv[0] << ": error opening " << OutputFilename
+ << ": sending to stdout instead!\n";
Out = &std::cout;
}
More information about the llvm-commits
mailing list