Pass the SourceMgr to the MCContext for cc1as.

llvm-svn: 149608
This commit is contained in:
Jim Grosbach 2012-02-02 17:54:07 +00:00
parent 8cf51b871c
commit ff3789a6bb
1 changed files with 1 additions and 1 deletions

View File

@ -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);