aboutsummaryrefslogtreecommitdiffstats
path: root/examples/BrainF/BrainFDriver.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-23 22:00:15 +0000
committerChris Lattner <sabre@nondot.org>2008-08-23 22:00:15 +0000
commitef5dc366e713f5d596f3625344d4ec6c10159ad5 (patch)
tree1368112327e41e24d7fafddd5dbed37b833d0894 /examples/BrainF/BrainFDriver.cpp
parent458194ddcd0abb8e3882b2f9c14f8a976374421c (diff)
downloadexternal_llvm-ef5dc366e713f5d596f3625344d4ec6c10159ad5.zip
external_llvm-ef5dc366e713f5d596f3625344d4ec6c10159ad5.tar.gz
external_llvm-ef5dc366e713f5d596f3625344d4ec6c10159ad5.tar.bz2
use proper namespace qualifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/BrainF/BrainFDriver.cpp')
-rw-r--r--examples/BrainF/BrainFDriver.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/BrainF/BrainFDriver.cpp b/examples/BrainF/BrainFDriver.cpp
index 0a24d7b..34fb806 100644
--- a/examples/BrainF/BrainFDriver.cpp
+++ b/examples/BrainF/BrainFDriver.cpp
@@ -36,7 +36,6 @@
#include "llvm/Support/ManagedStatic.h"
#include <fstream>
#include <iostream>
-
using namespace llvm;
//Command line options
@@ -87,8 +86,8 @@ int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " BrainF compiler\n");
if (InputFilename == "") {
- cerr<<"Error: You must specify the filename of the program to "
- "be compiled. Use --help to see the options.\n";
+ std::cerr<<"Error: You must specify the filename of the program to "
+ "be compiled. Use --help to see the options.\n";
abort();
}
@@ -130,13 +129,13 @@ int main(int argc, char **argv) {
//Verify generated code
if (verifyModule(*mod)) {
- cerr<<"Error: module failed verification. This shouldn't happen.\n";
+ std::cerr<<"Error: module failed verification. This shouldn't happen.\n";
abort();
}
//Write it out
if (JIT) {
- cout<<"------- Running JIT -------\n";
+ std::cout << "------- Running JIT -------\n";
ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
ExecutionEngine *ee = ExecutionEngine::create(mp, false);
std::vector<GenericValue> args;