llvm.org GIT mirror llvm / ef5dc36
use proper namespace qualifications git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55259 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
2 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2626 #include "llvm/Constants.h"
2727 #include "llvm/Intrinsics.h"
2828 #include "llvm/ADT/STLExtras.h"
29
29 #include
3030 using namespace llvm;
3131
3232 //Set the constants for naming
290290 break;
291291
292292 default:
293 cerr<<"Error: Unknown symbol.\n";
293 std::cerr << "Error: Unknown symbol.\n";
294294 abort();
295295 break;
296296 }
403403
404404 if (cursym == SYM_ENDLOOP) {
405405 if (!phi) {
406 cerr<<"Error: Extra ']'\n";
406 std::cerr << "Error: Extra ']'\n";
407407 abort();
408408 }
409409
449449 builder->CreateBr(endbb);
450450
451451 if (phi) {
452 cerr<<"Error: Missing ']'\n";
452 std::cerr << "Error: Missing ']'\n";
453453 abort();
454454 }
455455 }
3535 #include "llvm/Support/ManagedStatic.h"
3636 #include
3737 #include
38
3938 using namespace llvm;
4039
4140 //Command line options
8685 cl::ParseCommandLineOptions(argc, argv, " BrainF compiler\n");
8786
8887 if (InputFilename == "") {
89 cerr<<"Error: You must specify the filename of the program to "
90 "be compiled. Use --help to see the options.\n";
88 std::cerr<<"Error: You must specify the filename of the program to "
89 "be compiled. Use --help to see the options.\n";
9190 abort();
9291 }
9392
129128
130129 //Verify generated code
131130 if (verifyModule(*mod)) {
132 cerr<<"Error: module failed verification. This shouldn't happen.\n";
131 std::cerr<<"Error: module failed verification. This shouldn't happen.\n";
133132 abort();
134133 }
135134
136135 //Write it out
137136 if (JIT) {
138 cout<<"------- Running JIT -------\n";
137 std::cout << "------- Running JIT -------\n";
139138 ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
140139 ExecutionEngine *ee = ExecutionEngine::create(mp, false);
141140 std::vector args;