diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-02 18:40:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-02 18:40:06 +0000 |
commit | 191b0ba97eedcd55d6fc8616d9c391ddfcbc4f4e (patch) | |
tree | 167a0cff7322b404e2125f02f63183ae5ebaa389 /include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | |
parent | 2d2c2f2bb86808f97f9f82d633dfd14f0600a0d6 (diff) |
Force anything that #includes llvm/Transforms/Utils/UnifyFunctionExitNodes.h
to link in the implementation. Thanks to Anton Korobeynikov for figuring out
what was going on here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h')
-rw-r--r-- | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h index 81c71fb5ef..526851ba44 100644 --- a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h +++ b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h @@ -38,10 +38,16 @@ public: BasicBlock *getUnreachableBlock() const { return UnreachableBlock; } virtual bool runOnFunction(Function &F); + + // Force linking the impl of this class into anything that uses this header. + static int stub; }; Pass *createUnifyFunctionExitNodesPass(); +static IncludeFile +UNIFY_FUNCTION_EXIT_NODES_INCLUDE_FILE(&UnifyFunctionExitNodes::stub); + } // End llvm namespace #endif |