// Allocate target machine. First, check whether the user has
// explicitly specified an architecture to compile for.
- TargetMachine* (*TargetMachineAllocator)(const Module&) = 0;
+ TargetMachine* (*TargetMachineAllocator)(const Module&,
+ IntrinsicLowering *) = 0;
switch (Arch) {
case x86:
TargetMachineAllocator = allocateX86TargetMachine;
}
break;
}
- std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod));
+ std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod, 0));
assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
const TargetData &TD = Target.getTargetData();
exit(1);
}
- ExecutionEngine *EE =
- ExecutionEngine::create(MP, ForceInterpreter);
+ ExecutionEngine *EE = ExecutionEngine::create(MP, ForceInterpreter);
assert(EE && "Couldn't create an ExecutionEngine, not even an interpreter?");
// If the user specifically requested an argv[0] to pass into the program, do