mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
tblgen shouldn't include headers from llvm codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -14,9 +14,9 @@
|
|||||||
|
|
||||||
#include "InstrInfoEmitter.h"
|
#include "InstrInfoEmitter.h"
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
#include "llvm/Target/TargetInstrInfo.h"
|
|
||||||
#include "Record.h"
|
#include "Record.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <iostream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// runEnums - Print out enum values for all of the instructions.
|
// runEnums - Print out enum values for all of the instructions.
|
||||||
@ -37,7 +37,7 @@ void InstrInfoEmitter::runEnums(std::ostream &OS) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Namespace.empty()) {
|
if (Namespace.empty()) {
|
||||||
cerr << "No instructions defined!\n";
|
std::cerr << "No instructions defined!\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -365,7 +365,7 @@ void InstrInfoEmitter::emitShiftedValue(Record *R, StringInit *Val,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << "Unhandled initializer: " << *Val << "\n";
|
std::cerr << "Unhandled initializer: " << *Val << "\n";
|
||||||
throw "In record '" + R->getName() + "' for TSFlag emission.";
|
throw "In record '" + R->getName() + "' for TSFlag emission.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user