Add extern template instantiations of llvm::Calculate.
[oota-llvm.git] / lib / IR / Dominators.cpp
index 8fa742f745a3d0d4653f0acafecadb238ab657ff..baa6019098d2311a4de6252489d3f4481012b0de 100644 (file)
@@ -64,6 +64,16 @@ bool BasicBlockEdge::isSingleEdge() const {
 TEMPLATE_INSTANTIATION(class llvm::DomTreeNodeBase<BasicBlock>);
 TEMPLATE_INSTANTIATION(class llvm::DominatorTreeBase<BasicBlock>);
 
+#define LLVM_COMMA ,
+TEMPLATE_INSTANTIATION(void llvm::Calculate<Function LLVM_COMMA BasicBlock *>(
+    DominatorTreeBase<typename GraphTraits<BasicBlock *>::NodeType> &DT
+        LLVM_COMMA Function &F));
+TEMPLATE_INSTANTIATION(void llvm::Calculate<
+    Function LLVM_COMMA Inverse<BasicBlock *> >(DominatorTreeBase<
+    typename GraphTraits<Inverse<BasicBlock *> >::NodeType> &DT LLVM_COMMA
+                                                    Function &F));
+#undef LLVM_COMMA
+
 // dominates - Return true if Def dominates a use in User. This performs
 // the special checks necessary if Def and User are in the same basic block.
 // Note that Def doesn't dominate a use in Def itself!