diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-17 21:28:48 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-17 21:28:48 +0000 |
commit | 4b2b9402c5c369b94b35837470a170f1d0e47e1f (patch) | |
tree | 5f0c38c4df8b5af99a370ea44782b1b57eba756a /lib/ExecutionEngine/JIT | |
parent | 9080aaba0b8d4f313c70913c5a93ddd2bda22170 (diff) | |
download | external_llvm-4b2b9402c5c369b94b35837470a170f1d0e47e1f.zip external_llvm-4b2b9402c5c369b94b35837470a170f1d0e47e1f.tar.gz external_llvm-4b2b9402c5c369b94b35837470a170f1d0e47e1f.tar.bz2 |
Switching TargetMachineRegistry to use the new generic Registry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT')
-rw-r--r-- | lib/ExecutionEngine/JIT/TargetSelect.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/TargetSelect.cpp b/lib/ExecutionEngine/JIT/TargetSelect.cpp index bf968af..14e0a5f 100644 --- a/lib/ExecutionEngine/JIT/TargetSelect.cpp +++ b/lib/ExecutionEngine/JIT/TargetSelect.cpp @@ -20,7 +20,8 @@ #include "llvm/Target/TargetMachineRegistry.h" using namespace llvm; -static cl::opt<const TargetMachineRegistry::Entry*, false, TargetNameParser> +static cl::opt<const TargetMachineRegistry::entry*, false, + TargetMachineRegistry::Parser> MArch("march", cl::desc("Architecture to generate assembly for:")); static cl::opt<std::string> @@ -39,7 +40,7 @@ MAttrs("mattr", /// for the current target. Otherwise, return null. /// ExecutionEngine *JIT::create(ModuleProvider *MP, std::string *ErrorStr) { - const TargetMachineRegistry::Entry *TheArch = MArch; + const TargetMachineRegistry::entry *TheArch = MArch; if (TheArch == 0) { std::string Error; TheArch = TargetMachineRegistry::getClosestTargetForJIT(Error); |