[llvm-commits] [llvm] r40590 - in /llvm/trunk: include/llvm/Target/TargetMachineRegistry.h lib/Target/TargetMachineRegistry.cpp
Dan Gohman
djg at cray.com
Mon Jul 30 07:58:59 PDT 2007
Author: djg
Date: Mon Jul 30 09:58:59 2007
New Revision: 40590
URL: http://llvm.org/viewvc/llvm-project?rev=40590&view=rev
Log:
Fix the comment for getClosestTargetForJIT to reflect the fact that
it does not have a Module parameter.
Modified:
llvm/trunk/include/llvm/Target/TargetMachineRegistry.h
llvm/trunk/lib/Target/TargetMachineRegistry.cpp
Modified: llvm/trunk/include/llvm/Target/TargetMachineRegistry.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetMachineRegistry.h?rev=40590&r1=40589&r2=40590&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetMachineRegistry.h (original)
+++ llvm/trunk/include/llvm/Target/TargetMachineRegistry.h Mon Jul 30 09:58:59 2007
@@ -36,10 +36,9 @@
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);
Modified: llvm/trunk/lib/Target/TargetMachineRegistry.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetMachineRegistry.cpp?rev=40590&r1=40589&r2=40590&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetMachineRegistry.cpp (original)
+++ llvm/trunk/lib/Target/TargetMachineRegistry.cpp Mon Jul 30 09:58:59 2007
@@ -75,10 +75,9 @@
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;
More information about the llvm-commits
mailing list