aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitfb71d382471e82a9d064bb7cd0e7a7fee46e61f0 (patch)
treecd49b125ccca81ffa7c3e1dd65184987550e359a /lib/Target/TargetMachineRegistry.cpp
parentf452207d202618f92cbc04bcc6251ecae0eb6d61 (diff)
downloadexternal_llvm-fb71d382471e82a9d064bb7cd0e7a7fee46e61f0.zip
external_llvm-fb71d382471e82a9d064bb7cd0e7a7fee46e61f0.tar.gz
external_llvm-fb71d382471e82a9d064bb7cd0e7a7fee46e61f0.tar.bz2
Fix the comment for getClosestTargetForJIT to reflect the fact that
it does not have a Module parameter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachineRegistry.cpp')
-rw-r--r--lib/Target/TargetMachineRegistry.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/TargetMachineRegistry.cpp b/lib/Target/TargetMachineRegistry.cpp
index 2ab8f51..5be9eb1 100644
--- a/lib/Target/TargetMachineRegistry.cpp
+++ b/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;