#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"
using namespace llvm;
//Set the constants for naming
using namespace llvm;
//Set the constants for naming
- cerr<<"Error: Unknown symbol.\n";
+ std::cerr << "Error: Unknown symbol.\n";
if (cursym == SYM_ENDLOOP) {
if (!phi) {
if (cursym == SYM_ENDLOOP) {
if (!phi) {
- cerr<<"Error: Extra ']'\n";
+ std::cerr << "Error: Extra ']'\n";
builder->CreateBr(endbb);
if (phi) {
builder->CreateBr(endbb);
if (phi) {
- cerr<<"Error: Missing ']'\n";
+ std::cerr << "Error: Missing ']'\n";
#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
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";
//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;