mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Remove the MachineMove class.
It was just a less powerful and more confusing version of MCCFIInstruction. A side effect is that, since MCCFIInstruction uses dwarf register numbers, calls to getDwarfRegNum are pushed out, which should allow further simplifications. I left the MachineModuleInfo::addFrameMove interface unchanged since this patch was already fairly big. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,14 +62,8 @@ static bool getVerboseAsm() {
|
||||
llvm_unreachable("Invalid verbose asm state");
|
||||
}
|
||||
|
||||
LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
|
||||
StringRef CPU, StringRef FS,
|
||||
TargetOptions Options,
|
||||
Reloc::Model RM, CodeModel::Model CM,
|
||||
CodeGenOpt::Level OL)
|
||||
: TargetMachine(T, Triple, CPU, FS, Options) {
|
||||
CodeGenInfo = T.createMCCodeGenInfo(Triple, RM, CM, OL);
|
||||
AsmInfo = T.createMCAsmInfo(Triple);
|
||||
void LLVMTargetMachine::initAsmInfo() {
|
||||
AsmInfo = TheTarget.createMCAsmInfo(*getRegisterInfo(), TargetTriple);
|
||||
// TargetSelect.h moved to a different directory between LLVM 2.9 and 3.0,
|
||||
// and if the old one gets included then MCAsmInfo will be NULL and
|
||||
// we'll crash later.
|
||||
@@ -79,6 +73,15 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
|
||||
"and that InitializeAllTargetMCs() is being invoked!");
|
||||
}
|
||||
|
||||
LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
|
||||
StringRef CPU, StringRef FS,
|
||||
TargetOptions Options,
|
||||
Reloc::Model RM, CodeModel::Model CM,
|
||||
CodeGenOpt::Level OL)
|
||||
: TargetMachine(T, Triple, CPU, FS, Options) {
|
||||
CodeGenInfo = T.createMCCodeGenInfo(Triple, RM, CM, OL);
|
||||
}
|
||||
|
||||
void LLVMTargetMachine::addAnalysisPasses(PassManagerBase &PM) {
|
||||
PM.add(createBasicTargetTransformInfoPass(getTargetLowering()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user