mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user