Pass extra arguments around n stuph

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-12-28 09:51:04 +00:00
parent cd824d7678
commit 6fb6ce3148
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,8 @@ int main(int argc, char **argv) {
// 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;
@ -112,7 +113,7 @@ int main(int argc, char **argv) {
}
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();

View File

@ -57,8 +57,7 @@ int main(int argc, char **argv, char * const *envp) {
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