Switch to getNameStr().
[oota-llvm.git] / tools / bugpoint / ExtractFunction.cpp
index e9f7f938a7e913ff7eb2dae794a086b37f5e8d4d..f315f672ecbca430eec89b10db20c35dcf74826e 100644 (file)
@@ -353,7 +353,7 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const
     // If the BB doesn't have a name, give it one so we have something to key
     // off of.
     if (!BB->hasName()) BB->setName("tmpbb");
-    BlocksToNotExtractFile << BB->getParent()->getName() << " "
+    BlocksToNotExtractFile << BB->getParent()->getNameStr() << " "
                            << BB->getName() << "\n";
   }
   BlocksToNotExtractFile.close();