Fix the comment for getClosestTargetForJIT to reflect the fact that
authorDan Gohman <gohman@apple.com>
Mon, 30 Jul 2007 14:58:59 +0000 (14:58 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 30 Jul 2007 14:58:59 +0000 (14:58 +0000)
it does not have a Module parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40590 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetMachineRegistry.h
lib/Target/TargetMachineRegistry.cpp

index dd3ed7da96621262b349594bb887a8e11b7169f9..4c009e1a9a03bbd8e02fc763df06d0e4394b1a00 100644 (file)
@@ -36,10 +36,9 @@ namespace llvm {
     static const Entry *getClosestStaticTargetForModule(const Module &M,
                                                         std::string &Error);
 
-    /// getClosestTargetForJIT - Given an LLVM module, pick the best target that
-    /// is compatible with the current host and the specified module.  If no
-    /// close target can be found, this returns null and sets the Error string
-    /// to a reason.
+    /// getClosestTargetForJIT - Pick the best target that is compatible with
+    /// the current host.  If no close target can be found, this returns null
+    /// and sets the Error string to a reason.
     static const Entry *getClosestTargetForJIT(std::string &Error);
 
 
index 2ab8f5110cb6553f239eee06f69b2e523a631d4e..5be9eb1bb3f1bc63e600086fc86e977ad6b1b9a6 100644 (file)
@@ -75,10 +75,9 @@ TargetMachineRegistry::getClosestStaticTargetForModule(const Module &M,
   return UsableTargets.back().second;
 }
 
-/// getClosestTargetForJIT - Given an LLVM module, pick the best target that
-/// is compatible with the current host and the specified module.  If no
-/// close target can be found, this returns null and sets the Error string
-/// to a reason.
+/// getClosestTargetForJIT - Pick the best target that is compatible with
+/// the current host.  If no close target can be found, this returns null
+/// and sets the Error string to a reason.
 const TargetMachineRegistry::Entry *
 TargetMachineRegistry::getClosestTargetForJIT(std::string &Error) {
   std::vector<std::pair<unsigned, const Entry *> > UsableTargets;