projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
928fc3b
)
Add the INITIALIZE_PASS macro.
author
Owen Anderson
<resistor@mac.com>
Wed, 21 Jul 2010 20:46:41 +0000
(20:46 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 21 Jul 2010 20:46:41 +0000
(20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109034
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/PassSupport.h
patch
|
blob
|
history
diff --git
a/include/llvm/PassSupport.h
b/include/llvm/PassSupport.h
index 4bbafdb85523ca52b32fb6efa9b3411aca159260..4e936c1b213acc2f9fb40dc66f6813f0079f8a69 100644
(file)
--- a/
include/llvm/PassSupport.h
+++ b/
include/llvm/PassSupport.h
@@
-132,6
+132,8
@@
private:
PassInfo(const PassInfo &); // do not implement
};
+#define INITIALIZE_PASS(passName, arg, name, cfg, analysis) \
+ static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis)
template<typename PassName>
Pass *callDefaultCtor() { return new PassName(); }