mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
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. llvm-svn: 28660
This commit is contained in:
parent
a3e44daec0
commit
0f5ef733cc
@ -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
|
||||
|
@ -25,6 +25,8 @@ using namespace llvm;
|
||||
static RegisterOpt<UnifyFunctionExitNodes>
|
||||
X("mergereturn", "Unify function exit nodes");
|
||||
|
||||
int UnifyFunctionExitNodes::stub;
|
||||
|
||||
Pass *llvm::createUnifyFunctionExitNodesPass() {
|
||||
return new UnifyFunctionExitNodes();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user