[llvm-commits] [llvm] r43130 - /llvm/trunk/lib/VMCore/Pass.cpp
Chris Lattner
sabre at nondot.org
Thu Oct 18 09:11:18 PDT 2007
Author: lattner
Date: Thu Oct 18 11:11:18 2007
New Revision: 43130
URL: http://llvm.org/viewvc/llvm-project?rev=43130&view=rev
Log:
Reduce reliance on rtti info
Modified:
llvm/trunk/lib/VMCore/Pass.cpp
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=43130&r1=43129&r2=43130&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Thu Oct 18 11:11:18 2007
@@ -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 @@
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
More information about the llvm-commits
mailing list