projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvm-mc: Add --show-fixups option, for displaying the instruction fixup information...
[oota-llvm.git]
/
include
/
llvm
/
PassSupport.h
diff --git
a/include/llvm/PassSupport.h
b/include/llvm/PassSupport.h
index a8d18399ebe0531f7e10e6aca916ef692930cb0e..b22998985324f2e4c3785898223e993dca6104dd 100644
(file)
--- a/
include/llvm/PassSupport.h
+++ b/
include/llvm/PassSupport.h
@@
-21,7
+21,7
@@
#ifndef LLVM_PASS_SUPPORT_H
#define LLVM_PASS_SUPPORT_H
#ifndef LLVM_PASS_SUPPORT_H
#define LLVM_PASS_SUPPORT_H
-// No need to include Pass.h, we are being included by it!
+#include "Pass.h"
namespace llvm {
namespace llvm {
@@
-82,6
+82,11
@@
public:
/// TODO : Rename
intptr_t getTypeInfo() const { return PassID; }
/// TODO : Rename
intptr_t getTypeInfo() const { return PassID; }
+ /// Return true if this PassID implements the specified ID pointer.
+ bool isPassID(void *IDPtr) const {
+ return PassID == (intptr_t)IDPtr;
+ }
+
/// isAnalysisGroup - Return true if this is an analysis group, not a normal
/// pass.
///
/// isAnalysisGroup - Return true if this is an analysis group, not a normal
/// pass.
///
@@
-127,13
+132,6
@@
public:
return ItfImpl;
}
return ItfImpl;
}
- /// getPassInfo - Deprecated API compatibility function. This function
- /// just returns 'this'.
- ///
- const PassInfo *getPassInfo() const {
- return this;
- }
-
protected:
void registerPass();
void unregisterPass();
protected:
void registerPass();
void unregisterPass();
@@
-197,14
+195,11
@@
struct RegisterPass : public PassInfo {
/// a nice name with the interface.
///
class RegisterAGBase : public PassInfo {
/// a nice name with the interface.
///
class RegisterAGBase : public PassInfo {
- PassInfo *InterfaceInfo;
- const PassInfo *ImplementationInfo;
- bool isDefaultImplementation;
protected:
protected:
-
explicit
RegisterAGBase(const char *Name,
-
intptr_t InterfaceID,
-
intptr_t PassID = 0,
-
bool isDefault = false);
+ RegisterAGBase(const char *Name,
+ intptr_t InterfaceID,
+ intptr_t PassID = 0,
+ bool isDefault = false);
};
template<typename Interface, bool Default = false>
};
template<typename Interface, bool Default = false>