forked from OSchip/llvm-project
parent
9f92995781
commit
2e8a7d36ff
|
@ -578,8 +578,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
|
|||
|
||||
llvm::SourceMgr TempSrcMgr;
|
||||
llvm::MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &TempSrcMgr);
|
||||
MOFI->InitMCObjectFileInfo(TheTriple, /*PIC*/ false, llvm::CodeModel::Default,
|
||||
Ctx);
|
||||
MOFI->InitMCObjectFileInfo(TheTriple, /*PIC*/ false, Ctx);
|
||||
std::unique_ptr<llvm::MemoryBuffer> Buffer =
|
||||
llvm::MemoryBuffer::getMemBuffer(AsmString, "<MS inline asm>");
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
|||
PIC = false;
|
||||
}
|
||||
|
||||
MOFI->InitMCObjectFileInfo(Triple(Opts.Triple), PIC, CodeModel::Default, Ctx);
|
||||
MOFI->InitMCObjectFileInfo(Triple(Opts.Triple), PIC, Ctx);
|
||||
if (Opts.SaveTemporaryLabels)
|
||||
Ctx.setAllowTemporaryLabels(false);
|
||||
if (Opts.GenDwarfForAssembly)
|
||||
|
|
Loading…
Reference in New Issue