From: Jim Grosbach Date: Thu, 2 Feb 2012 17:54:07 +0000 (+0000) Subject: Pass the SourceMgr to the MCContext for cc1as. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a9a6d22d73ffb7cf311df036ad4a305c4fea65a;p=clang Pass the SourceMgr to the MCContext for cc1as. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149608 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 8ddcc47896..14ff1e03ac 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -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 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);