Reduce reliance on rtti info
authorChris Lattner <sabre@nondot.org>
Thu, 18 Oct 2007 16:11:18 +0000 (16:11 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Oct 2007 16:11:18 +0000 (16:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43130 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Pass.cpp

index 2f581c51abf0dc49bfe5132549f3e40299bff52f..b9d10e5a45338e93666ce8af365055d49d77b077 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/ModuleProvider.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Support/ManagedStatic.h"
-#include "llvm/Support/TypeInfo.h"
 #include <algorithm>
 #include <set>
 using namespace llvm;
@@ -49,7 +48,7 @@ void Pass::dumpPassStructure(unsigned Offset) {
 const char *Pass::getPassName() const {
   if (const PassInfo *PI = getPassInfo())
     return PI->getPassName();
-  return typeid(*this).name();
+  return "Unnamed pass: implement Pass::getPassName()";
 }
 
 // print - Print out the internal state of the pass.  This is called by Analyze