]> granicus.if.org Git - clang/commitdiff
Pass the SourceMgr to the MCContext for cc1as.
authorJim Grosbach <grosbach@apple.com>
Thu, 2 Feb 2012 17:54:07 +0000 (17:54 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 2 Feb 2012 17:54:07 +0000 (17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149608 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index 8ddcc47896342ce143c5ffddd373ccf3037f614e..14ff1e03ac3193c22156765b891a451301122851 100644 (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);