Pass extra arguments around n stuph
authorChris Lattner <sabre@nondot.org>
Sun, 28 Dec 2003 09:51:04 +0000 (09:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 28 Dec 2003 09:51:04 +0000 (09:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10631 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp
tools/lli/lli.cpp

index f219b6ea16116e783e05d9b9263586d108a5ebfb..eae891bf1f1d5d4a225edbf0a8e360d2e9f77929 100644 (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();
index 518c1a1d6eca66f0478cc2e6171cd7a987186a81..15bf500bba805d94111c24cfafbb0e15312889e0 100644 (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