[llvm-commits] CVS: llvm/include/llvm/PassSupport.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 24 18:02:00 PST 2003
Changes in directory llvm/include/llvm:
PassSupport.h updated: 1.9 -> 1.10
---
Log message:
Add new helper template function
---
Diffs of the changes:
Index: llvm/include/llvm/PassSupport.h
diff -u llvm/include/llvm/PassSupport.h:1.9 llvm/include/llvm/PassSupport.h:1.10
--- llvm/include/llvm/PassSupport.h:1.9 Mon Sep 16 11:01:39 2002
+++ llvm/include/llvm/PassSupport.h Mon Feb 24 18:00:50 2003
@@ -171,6 +171,8 @@
template<typename PassName>
Pass *callDefaultCtor() { return new PassName(); }
+template<typename PassName>
+Pass *callTargetDataCtor(const TargetData &TD) { return new PassName(TD); }
template<typename PassName>
struct RegisterPass : public RegisterPassBase {
More information about the llvm-commits
mailing list