forked from OSchip/llvm-project
Pass the SourceMgr to the MCContext for cc1as.
llvm-svn: 149608
This commit is contained in:
parent
8cf51b871c
commit
ff3789a6bb
|
@ -282,7 +282,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
|
|||
// FIXME: This is not pretty. MCContext has a ptr to MCObjectFileInfo and
|
||||
// MCObjectFileInfo needs a MCContext reference in order to initialize itself.
|
||||
OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());
|
||||
MCContext Ctx(*MAI, *MRI, MOFI.get());
|
||||
MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);
|
||||
// FIXME: Assembler behavior can change with -static.
|
||||
MOFI->InitMCObjectFileInfo(Opts.Triple,
|
||||
Reloc::Default, CodeModel::Default, Ctx);
|
||||
|
|
Loading…
Reference in New Issue