mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
remove the intrinsiclowering hook
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26970 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,8 +26,7 @@ static struct RegisterInterp {
|
||||
|
||||
/// create - Create a new interpreter object. This can never fail.
|
||||
///
|
||||
ExecutionEngine *Interpreter::create(ModuleProvider *MP,
|
||||
IntrinsicLowering *IL) {
|
||||
ExecutionEngine *Interpreter::create(ModuleProvider *MP) {
|
||||
Module *M;
|
||||
try {
|
||||
M = MP->materializeModule();
|
||||
@@ -55,17 +54,16 @@ ExecutionEngine *Interpreter::create(ModuleProvider *MP,
|
||||
break;
|
||||
}
|
||||
|
||||
return new Interpreter(M, isLittleEndian, isLongPointer, IL);
|
||||
return new Interpreter(M, isLittleEndian, isLongPointer);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Interpreter ctor - Initialize stuff
|
||||
//
|
||||
Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
|
||||
IntrinsicLowering *il)
|
||||
Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer)
|
||||
: ExecutionEngine(M),
|
||||
TD("lli", isLittleEndian, isLongPointer ? 8 : 4, isLongPointer ? 8 : 4,
|
||||
isLongPointer ? 8 : 4), IL(il) {
|
||||
isLongPointer ? 8 : 4) {
|
||||
|
||||
memset(&ExitValue, 0, sizeof(ExitValue));
|
||||
setTargetData(TD);
|
||||
@@ -74,7 +72,7 @@ Interpreter::Interpreter(Module *M, bool isLittleEndian, bool isLongPointer,
|
||||
initializeExternalFunctions();
|
||||
emitGlobals();
|
||||
|
||||
if (IL == 0) IL = new DefaultIntrinsicLowering();
|
||||
IL = new DefaultIntrinsicLowering();
|
||||
}
|
||||
|
||||
Interpreter::~Interpreter() {
|
||||
|
Reference in New Issue
Block a user