From: Chandler Carruth Date: Mon, 13 Jan 2014 10:56:17 +0000 (+0000) Subject: [PM] Update Clang to reflect LLVM r199095 which moves the core DomTree X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8222c1a0abb972fbefb897f6f390f3140db94050;p=clang [PM] Update Clang to reflect LLVM r199095 which moves the core DomTree algorithms and datastructures into the fully generic support library, separating them (almost) entirely from the LLVM IR. This makes the reliance on domtrees here *much* cleaner. It might be worthwhile for someone to use extern templates and other tools to sink a lot more of this code into the .cpp files instead of the .h files, but leaving that for someone other than me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199096 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/Analyses/Dominators.h b/include/clang/Analysis/Analyses/Dominators.h index 129f28f62b..1bfd05d57f 100644 --- a/include/clang/Analysis/Analyses/Dominators.h +++ b/include/clang/Analysis/Analyses/Dominators.h @@ -17,9 +17,15 @@ #include "clang/Analysis/AnalysisContext.h" #include "clang/Analysis/CFG.h" #include "llvm/ADT/GraphTraits.h" -#include "llvm/IR/DominatorInternals.h" -#include "llvm/IR/Dominators.h" -#include "llvm/IR/Module.h" +#include "llvm/Support/GenericDomTree.h" +#include "llvm/Support/GenericDomTreeConstruction.h" + +// FIXME: There is no good reason for the domtree to require a print method +// which accepts an LLVM Module, so remove this (and the method's argument that +// needs it) when that is fixed. +namespace llvm { +class Module; +} namespace clang {