mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 04:34:41 +00:00
Use TargetMachine's register info instead of creating a new one and leaking it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
027c32a14e
commit
79485315cd
@ -165,7 +165,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||
Context->setAllowTemporaryLabels(false);
|
||||
|
||||
const MCAsmInfo &MAI = *getMCAsmInfo();
|
||||
const MCRegisterInfo &MRI = *getTarget().createMCRegInfo(getTargetTriple());
|
||||
const MCRegisterInfo &MRI = *getRegisterInfo();
|
||||
const MCSubtargetInfo &STI = getSubtarget<MCSubtargetInfo>();
|
||||
OwningPtr<MCStreamer> AsmStreamer;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user