Fixed comment in header of Block Frequency Impl and added text for C++ mode.
[oota-llvm.git] / tools / llvm-objdump / llvm-objdump.cpp
index d8611d8b3d1fcccbb8f1fcbccd1901b993d48182..122ac833987e6d29c1be1d8e26b397c0f93a5ce8 100644 (file)
@@ -310,7 +310,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
 
   if (Symbolize) {
     MOFI.reset(new MCObjectFileInfo);
-    Ctx.reset(new MCContext(*AsmInfo.get(), *MRI.get(), MOFI.get()));
+    Ctx.reset(new MCContext(AsmInfo.get(), MRI.get(), MOFI.get()));
     OwningPtr<MCRelocationInfo> RelInfo(
       TheTarget->createMCRelocationInfo(TripleName, *Ctx.get()));
     if (RelInfo) {
@@ -355,8 +355,9 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
                                        FI != FE; ++FI) {
       static int filenum = 0;
       emitDOTFile((Twine((*FI)->getName()) + "_" +
-                   utostr(filenum++) + ".dot").str().c_str(),
+                   utostr(filenum) + ".dot").str().c_str(),
                     **FI, IP.get());
+      ++filenum;
     }
   }