Use pointers to the MCAsmInfo and MCRegInfo.
[oota-llvm.git] / tools / llvm-mc / llvm-mc.cpp
index 289a4450891876d24f0b0c3520c883b3ecd52165..26c99d5283274b6491e46342908399a14f955cce 100644 (file)
@@ -388,7 +388,7 @@ int main(int argc, char **argv) {
   // 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(), &SrcMgr);
+  MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr);
   MOFI->InitMCObjectFileInfo(TripleName, RelocModel, CMModel, Ctx);
 
   if (SaveTempLabels)