llvm-mc pass through SourceMgr to MCContext.
authorJim Grosbach <grosbach@apple.com>
Thu, 26 Jan 2012 23:20:07 +0000 (23:20 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 26 Jan 2012 23:20:07 +0000 (23:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149091 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-mc/llvm-mc.cpp

index ccb0cbd50433a2e49b6a066b5ba9e1b68e093b05..f2365c67611466daab3931156452c2feeb9f8085 100644 (file)
@@ -383,7 +383,7 @@ static int AssembleInput(const char *ProgName) {
   // 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);
   MOFI->InitMCObjectFileInfo(TripleName, RelocModel, CMModel, Ctx);
 
   if (SaveTempLabels)