mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 17:31:33 +00:00
use proper namespace qualifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55259 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
458194ddcd
commit
ef5dc366e7
@ -27,7 +27,7 @@
|
|||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/Intrinsics.h"
|
#include "llvm/Intrinsics.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
|
#include <iostream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
//Set the constants for naming
|
//Set the constants for naming
|
||||||
@ -291,7 +291,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
cerr<<"Error: Unknown symbol.\n";
|
std::cerr << "Error: Unknown symbol.\n";
|
||||||
abort();
|
abort();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -404,7 +404,7 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb) {
|
|||||||
|
|
||||||
if (cursym == SYM_ENDLOOP) {
|
if (cursym == SYM_ENDLOOP) {
|
||||||
if (!phi) {
|
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);
|
builder->CreateBr(endbb);
|
||||||
|
|
||||||
if (phi) {
|
if (phi) {
|
||||||
cerr<<"Error: Missing ']'\n";
|
std::cerr << "Error: Missing ']'\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "llvm/Support/ManagedStatic.h"
|
#include "llvm/Support/ManagedStatic.h"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
//Command line options
|
//Command line options
|
||||||
@ -87,8 +86,8 @@ int main(int argc, char **argv) {
|
|||||||
cl::ParseCommandLineOptions(argc, argv, " BrainF compiler\n");
|
cl::ParseCommandLineOptions(argc, argv, " BrainF compiler\n");
|
||||||
|
|
||||||
if (InputFilename == "") {
|
if (InputFilename == "") {
|
||||||
cerr<<"Error: You must specify the filename of the program to "
|
std::cerr<<"Error: You must specify the filename of the program to "
|
||||||
"be compiled. Use --help to see the options.\n";
|
"be compiled. Use --help to see the options.\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,13 +129,13 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
//Verify generated code
|
//Verify generated code
|
||||||
if (verifyModule(*mod)) {
|
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();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Write it out
|
//Write it out
|
||||||
if (JIT) {
|
if (JIT) {
|
||||||
cout<<"------- Running JIT -------\n";
|
std::cout << "------- Running JIT -------\n";
|
||||||
ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
|
ExistingModuleProvider *mp = new ExistingModuleProvider(mod);
|
||||||
ExecutionEngine *ee = ExecutionEngine::create(mp, false);
|
ExecutionEngine *ee = ExecutionEngine::create(mp, false);
|
||||||
std::vector<GenericValue> args;
|
std::vector<GenericValue> args;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user