]> granicus.if.org Git - clang/commitdiff
[PM] Update Clang to reflect LLVM r199095 which moves the core DomTree
authorChandler Carruth <chandlerc@gmail.com>
Mon, 13 Jan 2014 10:56:17 +0000 (10:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 13 Jan 2014 10:56:17 +0000 (10:56 +0000)
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

include/clang/Analysis/Analyses/Dominators.h

index 129f28f62bbb7ed8b066cc0a8365f77ae2c82d9c..1bfd05d57fc2abc883401ef3aded9b05ccd2c01d 100644 (file)
 #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 {