Reduce reliance on rtti info

llvm-svn: 43130
This commit is contained in:
Chris Lattner 2007-10-18 16:11:18 +00:00
parent 9b6ec77647
commit 9afb8e4e29
1 changed files with 1 additions and 2 deletions

View 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