From: Chris Lattner Date: Sun, 28 Dec 2003 09:51:04 +0000 (+0000) Subject: Pass extra arguments around n stuph X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6fb6ce3148ec4a9aaab47800da2365d7f60a6f5b;p=oota-llvm.git Pass extra arguments around n stuph git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10631 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index f219b6ea161..eae891bf1f1 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -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 target(TargetMachineAllocator(mod)); + std::auto_ptr target(TargetMachineAllocator(mod, 0)); assert(target.get() && "Could not allocate target machine!"); TargetMachine &Target = *target.get(); const TargetData &TD = Target.getTargetData(); diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 518c1a1d6ec..15bf500bba8 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -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