mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 14:42:01 +00:00
Reduce reliance on rtti info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53336cb47e
commit
fe3e3f4438
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user