mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4cbcee1618
commit
7842a741eb
@ -130,7 +130,7 @@ static MCContext *addPassesToGenerateCode(LLVMTargetMachine *TM,
|
|||||||
new MachineModuleInfo(*TM->getMCAsmInfo(), *TM->getRegisterInfo(),
|
new MachineModuleInfo(*TM->getMCAsmInfo(), *TM->getRegisterInfo(),
|
||||||
&TM->getTargetLowering()->getObjFileLowering());
|
&TM->getTargetLowering()->getObjFileLowering());
|
||||||
PM.add(MMI);
|
PM.add(MMI);
|
||||||
MCContext *Context = &MMI->getContext(); // Return the MCContext specifically by-ref.
|
MCContext *Context = &MMI->getContext(); // Return the MCContext by-ref.
|
||||||
|
|
||||||
// Set up a MachineFunction for the rest of CodeGen to work on.
|
// Set up a MachineFunction for the rest of CodeGen to work on.
|
||||||
PM.add(new MachineFunctionAnalysis(*TM));
|
PM.add(new MachineFunctionAnalysis(*TM));
|
||||||
@ -270,7 +270,8 @@ bool LLVMTargetMachine::addPassesToEmitMC(PassManagerBase &PM,
|
|||||||
// Create the code emitter for the target if it exists. If not, .o file
|
// Create the code emitter for the target if it exists. If not, .o file
|
||||||
// emission fails.
|
// emission fails.
|
||||||
const MCSubtargetInfo &STI = getSubtarget<MCSubtargetInfo>();
|
const MCSubtargetInfo &STI = getSubtarget<MCSubtargetInfo>();
|
||||||
MCCodeEmitter *MCE = getTarget().createMCCodeEmitter(*getInstrInfo(),STI, *Ctx);
|
MCCodeEmitter *MCE = getTarget().createMCCodeEmitter(*getInstrInfo(),STI,
|
||||||
|
*Ctx);
|
||||||
MCAsmBackend *MAB = getTarget().createMCAsmBackend(getTargetTriple());
|
MCAsmBackend *MAB = getTarget().createMCAsmBackend(getTargetTriple());
|
||||||
if (MCE == 0 || MAB == 0)
|
if (MCE == 0 || MAB == 0)
|
||||||
return true;
|
return true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//===--- LiveRangeEdit.cpp - Basic tools for editing a register live range --===//
|
//===-- LiveRangeEdit.cpp - Basic tools for editing a register live range -===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//===-- RegisterCoalescer.h - Register Coalescing Interface ------*- C++ -*-===//
|
//===-- RegisterCoalescer.h - Register Coalescing Interface -----*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user