llvm-mc pass through SourceMgr to MCContext.
[oota-llvm.git] / 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)