diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-11 05:05:56 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-11 05:05:56 +0000 |
commit | 8e32f5e46dd0fe45a8f7e47659b21e2f68926130 (patch) | |
tree | 864160408f5a7ecbcabf9643f88415af069e6e0d | |
parent | fc188b95b81332c12043173c7f517341c6ad27a9 (diff) | |
download | external_llvm-8e32f5e46dd0fe45a8f7e47659b21e2f68926130.zip external_llvm-8e32f5e46dd0fe45a8f7e47659b21e2f68926130.tar.gz external_llvm-8e32f5e46dd0fe45a8f7e47659b21e2f68926130.tar.bz2 |
IncludeFile hack to pull in BasicValueNumbering whenever ValueNumbering.h
is included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10397 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/ValueNumbering.h | 5 | ||||
-rw-r--r-- | lib/Analysis/ValueNumbering.cpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ValueNumbering.h b/include/llvm/Analysis/ValueNumbering.h index 74b5c97..b337a22 100644 --- a/include/llvm/Analysis/ValueNumbering.h +++ b/include/llvm/Analysis/ValueNumbering.h @@ -21,6 +21,7 @@ #define LLVM_ANALYSIS_VALUE_NUMBERING_H #include <vector> +#include "llvm/Pass.h" namespace llvm { @@ -37,6 +38,10 @@ struct ValueNumbering { virtual ~ValueNumbering(); // We want to be subclassed }; +extern void BasicValueNumberingStub(); +static IncludeFile +HDR_INCLUDE_VALUENUMBERING_CPP((void*)&BasicValueNumberingStub); + } // End llvm namespace #endif diff --git a/lib/Analysis/ValueNumbering.cpp b/lib/Analysis/ValueNumbering.cpp index 5807546..d472651 100644 --- a/lib/Analysis/ValueNumbering.cpp +++ b/lib/Analysis/ValueNumbering.cpp @@ -191,4 +191,6 @@ void BVNImpl::visitGetElementPtrInst(GetElementPtrInst &I) { } } +void BasicValueNumberingStub() { } + } // End llvm namespace |