From 55360dacd473b32e5d69c4fef1b5b20099c74c56 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 30 Jul 2007 14:58:59 +0000 Subject: [PATCH] Fix the comment for getClosestTargetForJIT to reflect the fact that it does not have a Module parameter. llvm-svn: 40590 --- llvm/include/llvm/Target/TargetMachineRegistry.h | 7 +++---- llvm/lib/Target/TargetMachineRegistry.cpp | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/llvm/include/llvm/Target/TargetMachineRegistry.h b/llvm/include/llvm/Target/TargetMachineRegistry.h index dd3ed7da9662..4c009e1a9a03 100644 --- a/llvm/include/llvm/Target/TargetMachineRegistry.h +++ b/llvm/include/llvm/Target/TargetMachineRegistry.h @@ -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); diff --git a/llvm/lib/Target/TargetMachineRegistry.cpp b/llvm/lib/Target/TargetMachineRegistry.cpp index 2ab8f5110cb6..5be9eb1bb3f1 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 > UsableTargets;