remove always-null IntrinsicLowering argument.
authorChris Lattner <sabre@nondot.org>
Thu, 23 Mar 2006 05:28:02 +0000 (05:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 23 Mar 2006 05:28:02 +0000 (05:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26971 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetMachineRegistry.h
lib/ExecutionEngine/JIT/TargetSelect.cpp
lib/Target/TargetMachineRegistry.cpp
tools/llc/llc.cpp

index 77aecd745ae0b9d0bcfec3faa9c57005aba52684..f1dcc6a2dbd54834c2b9d6959c4af5f2636b74c4 100644 (file)
@@ -22,7 +22,6 @@
 namespace llvm {
   class Module;
   class TargetMachine;
-  class IntrinsicLowering;
 
   struct TargetMachineRegistry {
     struct Entry;
@@ -49,8 +48,7 @@ namespace llvm {
     struct Entry {
       const char *Name;
       const char *ShortDesc;
-      TargetMachine *(*CtorFn)(const Module &, IntrinsicLowering*,
-                      const std::string &);
+      TargetMachine *(*CtorFn)(const Module &, const std::string &);
       unsigned (*ModuleMatchQualityFn)(const Module &M);
       unsigned (*JITMatchQualityFn)();
 
@@ -58,8 +56,7 @@ namespace llvm {
 
     protected:
       Entry(const char *N, const char *SD,
-            TargetMachine *(*CF)(const Module &, IntrinsicLowering*,
-                                 const std::string &),
+            TargetMachine *(*CF)(const Module &, const std::string &),
             unsigned (*MMF)(const Module &M), unsigned (*JMF)());
     private:
       const Entry *Next;  // Next entry in the linked list.
@@ -82,9 +79,8 @@ namespace llvm {
                                    &TargetMachineImpl::getJITMatchQuality) {
     }
   private:
-    static TargetMachine *Allocator(const Module &M, IntrinsicLowering *IL,
-                                    const std::string &FS) {
-      return new TargetMachineImpl(M, IL, FS);
+    static TargetMachine *Allocator(const Module &M, const std::string &FS) {
+      return new TargetMachineImpl(M, 0, FS);
     }
   };
 
index 05e86e650aed0c6e1d0e23b3aef15e8428151a6c..ef9c8f549e687668bf2a0509fc4ca3cfe6340be1 100644 (file)
@@ -61,7 +61,7 @@ ExecutionEngine *JIT::create(ModuleProvider *MP) {
   }
 
   // Allocate a target...
-  TargetMachine *Target = MArch->CtorFn(*MP->getModule(), 0, FeaturesStr);
+  TargetMachine *Target = MArch->CtorFn(*MP->getModule(), FeaturesStr);
   assert(Target && "Could not allocate target machine!");
 
   // If the target supports JIT code generation, return a new JIT now.
index f5bd035d03354a334d04c1255528a02695315b21..2ab8f5110cb6553f239eee06f69b2e523a631d4e 100644 (file)
@@ -26,8 +26,7 @@ const TargetMachineRegistry::Entry *TargetMachineRegistry::List = 0;
 static TargetRegistrationListener *Listeners = 0;
 
 TargetMachineRegistry::Entry::Entry(const char *N, const char *SD,
-                       TargetMachine *(*CF)(const Module &, IntrinsicLowering*,
-                                            const std::string &),
+                       TargetMachine *(*CF)(const Module &,const std::string &),
                            unsigned (*MMF)(const Module &M), unsigned (*JMF)())
   : Name(N), ShortDesc(SD), CtorFn(CF), ModuleMatchQualityFn(MMF),
     JITMatchQualityFn(JMF), Next(List) {
index 30a4880bb7446ad32b70329f80b671f7b21b21e0..357eedd0b68e433540e5915902e951496d39b5c6 100644 (file)
@@ -119,8 +119,6 @@ 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&,
-                                             IntrinsicLowering *) = 0;
     if (MArch == 0) {
       std::string Err;
       MArch = TargetMachineRegistry::getClosestStaticTargetForModule(mod, Err);
@@ -142,7 +140,7 @@ int main(int argc, char **argv) {
       FeaturesStr = Features.getString();
     }
 
-    std::auto_ptr<TargetMachine> target(MArch->CtorFn(mod, 0, FeaturesStr));
+    std::auto_ptr<TargetMachine> target(MArch->CtorFn(mod, FeaturesStr));
     assert(target.get() && "Could not allocate target machine!");
     TargetMachine &Target = *target.get();
     const TargetData &TD = Target.getTargetData();