summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dis/dis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-22 20:13:16 +0000
committerChris Lattner <sabre@nondot.org>2003-05-22 20:13:16 +0000
commit02a168310b2bf8df5f825246225645a86449af13 (patch)
tree34a50925aa892da2fe7083d364367772a7a44235 /llvm/tools/llvm-dis/dis.cpp
parenta87170a36a144a698cc16e945e47a1d1f83939bc (diff)
downloadbcm5719-llvm-02a168310b2bf8df5f825246225645a86449af13.tar.gz
bcm5719-llvm-02a168310b2bf8df5f825246225645a86449af13.zip
Kill using declarations
llvm-svn: 6292
Diffstat (limited to 'llvm/tools/llvm-dis/dis.cpp')
-rw-r--r--llvm/tools/llvm-dis/dis.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/llvm/tools/llvm-dis/dis.cpp b/llvm/tools/llvm-dis/dis.cpp
index a48dd7eb1a0..b52354e7127 100644
--- a/llvm/tools/llvm-dis/dis.cpp
+++ b/llvm/tools/llvm-dis/dis.cpp
@@ -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 @@ int main(int argc, char **argv) {
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 @@ int main(int argc, char **argv) {
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 @@ int main(int argc, char **argv) {
}
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;
}
OpenPOWER on IntegriCloud