mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Pass in a "const Triple &T" instead of a raw StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -197,10 +197,9 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||
if (!MCE || !MAB)
|
||||
return true;
|
||||
|
||||
AsmStreamer.reset(
|
||||
getTarget()
|
||||
.createMCObjectStreamer(getTargetTriple(), *Context, *MAB, Out, MCE,
|
||||
STI, Options.MCOptions.MCRelaxAll));
|
||||
Triple T(getTargetTriple());
|
||||
AsmStreamer.reset(getTarget().createMCObjectStreamer(
|
||||
T, *Context, *MAB, Out, MCE, STI, Options.MCOptions.MCRelaxAll));
|
||||
break;
|
||||
}
|
||||
case CGFT_Null:
|
||||
@@ -249,9 +248,9 @@ bool LLVMTargetMachine::addPassesToEmitMC(PassManagerBase &PM,
|
||||
if (!MCE || !MAB)
|
||||
return true;
|
||||
|
||||
Triple T(getTargetTriple());
|
||||
std::unique_ptr<MCStreamer> AsmStreamer(getTarget().createMCObjectStreamer(
|
||||
getTargetTriple(), *Ctx, *MAB, Out, MCE, STI,
|
||||
Options.MCOptions.MCRelaxAll));
|
||||
T, *Ctx, *MAB, Out, MCE, STI, Options.MCOptions.MCRelaxAll));
|
||||
|
||||
// Create the AsmPrinter, which takes ownership of AsmStreamer if successful.
|
||||
FunctionPass *Printer =
|
||||
|
Reference in New Issue
Block a user