summaryrefslogtreecommitdiff
path: root/tools/llvm-dis
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
commit6c8103f7ddb734d128739a463bcd0667d73c62aa (patch)
treed513d29aacc379458ac318f8d7c67f0825932e67 /tools/llvm-dis
parentca6433f233b7ed432916ba07976f9a4e9e0767b0 (diff)
downloadllvm-6c8103f7ddb734d128739a463bcd0667d73c62aa.tar.gz
llvm-6c8103f7ddb734d128739a463bcd0667d73c62aa.tar.bz2
llvm-6c8103f7ddb734d128739a463bcd0667d73c62aa.tar.xz
Kill using declarations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-dis')
-rw-r--r--tools/llvm-dis/dis.cpp19
-rw-r--r--tools/llvm-dis/llvm-dis.cpp19
2 files changed, 18 insertions, 20 deletions
diff --git a/tools/llvm-dis/dis.cpp b/tools/llvm-dis/dis.cpp
index a48dd7eb1a..b52354e712 100644
--- a/tools/llvm-dis/dis.cpp
+++ b/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;
}
diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp
index a48dd7eb1a..b52354e712 100644
--- a/tools/llvm-dis/llvm-dis.cpp
+++ b/tools/llvm-dis/llvm-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;
}