diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:00:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-08-23 22:00:15 +0000 |
| commit | 8e8eae6860966b46a33477928d70d98400ec7a23 (patch) | |
| tree | ea7a0411a87105f7b2f9d7de0c66cefb50b8d6b0 /llvm/examples | |
| parent | 2ecf455f1b3af9494b2190f9eb0df879033de595 (diff) | |
| download | bcm5719-llvm-8e8eae6860966b46a33477928d70d98400ec7a23.tar.gz bcm5719-llvm-8e8eae6860966b46a33477928d70d98400ec7a23.zip | |
use proper namespace qualifications
llvm-svn: 55259
Diffstat (limited to 'llvm/examples')
| -rw-r--r-- | llvm/examples/BrainF/BrainF.cpp | 8 | ||||
| -rw-r--r-- | llvm/examples/BrainF/BrainFDriver.cpp | 9 |
2 files changed, 8 insertions, 9 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp index f3d66d9f183..86f2ea495d3 100644 --- a/llvm/examples/BrainF/BrainF.cpp +++ b/llvm/examples/BrainF/BrainF.cpp @@ -27,7 +27,7 @@ #include "llvm/Constants.h" #include "llvm/Intrinsics.h" #include "llvm/ADT/STLExtras.h" - +#include <iostream> using namespace llvm; //Set the constants for naming @@ -291,7 +291,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) { break; default: - cerr<<"Error: Unknown symbol.\n"; + std::cerr << "Error: Unknown symbol.\n"; abort(); break; } @@ -404,7 +404,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) { if (cursym == SYM_ENDLOOP) { if (!phi) { - cerr<<"Error: Extra ']'\n"; + std::cerr << "Error: Extra ']'\n"; abort(); } @@ -450,7 +450,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) { builder->CreateBr(endbb); if (phi) { - cerr<<"Error: Missing ']'\n"; + std::cerr << "Error: Missing ']'\n"; abort(); } } diff --git a/llvm/examples/BrainF/BrainFDriver.cpp b/llvm/examples/BrainF/BrainFDriver.cpp index 0a24d7b665f..34fb8061772 100644 --- a/llvm/examples/BrainF/BrainFDriver.cpp +++ b/llvm/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; |

