mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
Devirtualize Pass::getPassID, overriding it isn't useful and it gets called a lot.
While at it pull the trivial ctor in line. llvm-svn: 145124
This commit is contained in:
parent
5017d640a1
commit
4fab3375a7
@ -86,7 +86,7 @@ class Pass {
|
||||
Pass(const Pass &); // DO NOT IMPLEMENT
|
||||
|
||||
public:
|
||||
explicit Pass(PassKind K, char &pid);
|
||||
explicit Pass(PassKind K, char &pid) : Resolver(0), PassID(&pid), Kind(K) { }
|
||||
virtual ~Pass();
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ public:
|
||||
virtual const char *getPassName() const;
|
||||
|
||||
/// getPassID - Return the PassID number that corresponds to this pass.
|
||||
virtual AnalysisID getPassID() const {
|
||||
AnalysisID getPassID() const {
|
||||
return PassID;
|
||||
}
|
||||
|
||||
|
@ -25,8 +25,6 @@ using namespace llvm;
|
||||
// Pass Implementation
|
||||
//
|
||||
|
||||
Pass::Pass(PassKind K, char &pid) : Resolver(0), PassID(&pid), Kind(K) { }
|
||||
|
||||
// Force out-of-line virtual method.
|
||||
Pass::~Pass() {
|
||||
delete Resolver;
|
||||
|
Loading…
x
Reference in New Issue
Block a user