use proper namespace qualifications
authorChris Lattner <sabre@nondot.org>
Sat, 23 Aug 2008 22:00:15 +0000 (22:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Aug 2008 22:00:15 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55259 91177308-0d34-0410-b5e6-96231b3b80d8

examples/BrainF/BrainF.cpp
examples/BrainF/BrainFDriver.cpp

index f3d66d9f18365b330c1a72517c127bd997895349..86f2ea495d31230c8800391836a11a64358c64dc 100644 (file)
@@ -27,7 +27,7 @@
 #include "llvm/Constants.h"
 #include "llvm/Intrinsics.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Constants.h"
 #include "llvm/Intrinsics.h"
 #include "llvm/ADT/STLExtras.h"
-
+#include <iostream>
 using namespace llvm;
 
 //Set the constants for naming
 using namespace llvm;
 
 //Set the constants for naming
@@ -291,7 +291,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) {
         break;
 
       default:
         break;
 
       default:
-        cerr<<"Error: Unknown symbol.\n";
+        std::cerr << "Error: Unknown symbol.\n";
         abort();
         break;
     }
         abort();
         break;
     }
@@ -404,7 +404,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) {
 
   if (cursym == SYM_ENDLOOP) {
     if (!phi) {
 
   if (cursym == SYM_ENDLOOP) {
     if (!phi) {
-      cerr<<"Error: Extra ']'\n";
+      std::cerr << "Error: Extra ']'\n";
       abort();
     }
 
       abort();
     }
 
@@ -450,7 +450,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) {
   builder->CreateBr(endbb);
 
   if (phi) {
   builder->CreateBr(endbb);
 
   if (phi) {
-    cerr<<"Error: Missing ']'\n";
+    std::cerr << "Error: Missing ']'\n";
     abort();
   }
 }
     abort();
   }
 }
index 0a24d7b665f8919f61b762f011a296f6c192b824..34fb80617722cf97cd2a2d71f41405a8418ff702 100644 (file)
@@ -36,7 +36,6 @@
 #include "llvm/Support/ManagedStatic.h"
 #include <fstream>
 #include <iostream>
 #include "llvm/Support/ManagedStatic.h"
 #include <fstream>
 #include <iostream>
-
 using namespace llvm;
 
 //Command line options
 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 == "") {
   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();
   }
 
     abort();
   }
 
@@ -130,13 +129,13 @@ int main(int argc, char **argv) {
 
   //Verify generated code
   if (verifyModule(*mod)) {
 
   //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) {
     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;
     ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
     ExecutionEngine *ee = ExecutionEngine::create(mp, false);
     std::vector<GenericValue> args;