[llvm-commits] [llvm] r149091 - /llvm/trunk/tools/llvm-mc/llvm-mc.cpp

Jim Grosbach grosbach at apple.com
Thu Jan 26 15:20:08 PST 2012


Author: grosbach
Date: Thu Jan 26 17:20:07 2012
New Revision: 149091

URL: http://llvm.org/viewvc/llvm-project?rev=149091&view=rev
Log:
llvm-mc pass through SourceMgr to MCContext.

Modified:
    llvm/trunk/tools/llvm-mc/llvm-mc.cpp

Modified: llvm/trunk/tools/llvm-mc/llvm-mc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/llvm-mc.cpp?rev=149091&r1=149090&r2=149091&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/llvm-mc.cpp (original)
+++ llvm/trunk/tools/llvm-mc/llvm-mc.cpp Thu Jan 26 17:20:07 2012
@@ -383,7 +383,7 @@
   // 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)





More information about the llvm-commits mailing list