summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachineRegistry.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-30 14:58:59 +0000
committerDan Gohman <gohman@apple.com>2007-07-30 14:58:59 +0000
commit55360dacd473b32e5d69c4fef1b5b20099c74c56 (patch)
tree481efbaa14783077ce48eb99ff74ce16ab4d6853 /llvm/lib/Target/TargetMachineRegistry.cpp
parente379f08b193f76f2426c180ec3ccf1527fd11ec6 (diff)
downloadbcm5719-llvm-55360dacd473b32e5d69c4fef1b5b20099c74c56.tar.gz
bcm5719-llvm-55360dacd473b32e5d69c4fef1b5b20099c74c56.zip
Fix the comment for getClosestTargetForJIT to reflect the fact that
it does not have a Module parameter. llvm-svn: 40590
Diffstat (limited to 'llvm/lib/Target/TargetMachineRegistry.cpp')
-rw-r--r--llvm/lib/Target/TargetMachineRegistry.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/TargetMachineRegistry.cpp b/llvm/lib/Target/TargetMachineRegistry.cpp
index 2ab8f5110cb..5be9eb1bb3f 100644
--- a/llvm/lib/Target/TargetMachineRegistry.cpp
+++ b/llvm/lib/Target/TargetMachineRegistry.cpp
@@ -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;
OpenPOWER on IntegriCloud