X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FDominators.cpp;h=d6649d6c7064bcc862abb2878b26ca524585da30;hb=f359f7ef8c8cccea0c830308289fe7fe2c148bdc;hp=8fa742f745a3d0d4653f0acafecadb238ab657ff;hpb=7f2eff792a2e18758a25956abdac2440ee18dd7f;p=oota-llvm.git diff --git a/lib/IR/Dominators.cpp b/lib/IR/Dominators.cpp index 8fa742f745a..d6649d6c706 100644 --- a/lib/IR/Dominators.cpp +++ b/lib/IR/Dominators.cpp @@ -18,8 +18,8 @@ #include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/IR/CFG.h" #include "llvm/IR/Instructions.h" -#include "llvm/Support/CFG.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" @@ -64,6 +64,16 @@ bool BasicBlockEdge::isSingleEdge() const { TEMPLATE_INSTANTIATION(class llvm::DomTreeNodeBase); TEMPLATE_INSTANTIATION(class llvm::DominatorTreeBase); +#define LLVM_COMMA , +TEMPLATE_INSTANTIATION(void llvm::Calculate( + DominatorTreeBase::NodeType> &DT LLVM_COMMA + Function &F)); +TEMPLATE_INSTANTIATION( + void llvm::Calculate >( + DominatorTreeBase >::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!