diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-13 09:26:24 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-13 09:26:24 +0000 |
commit | 56e1394c8861ecdc551815ae875d2c3db2fa9cdb (patch) | |
tree | 0880d6953a3b837ef6baa78f1c10a8cfe9138476 /tools/opt | |
parent | 213fb8f11eed6754a3b62ecd835cdfd3eb6f18ff (diff) | |
download | llvm-56e1394c8861ecdc551815ae875d2c3db2fa9cdb.tar.gz llvm-56e1394c8861ecdc551815ae875d2c3db2fa9cdb.tar.bz2 llvm-56e1394c8861ecdc551815ae875d2c3db2fa9cdb.tar.xz |
[cleanup] Move the Dominators.h and Verifier.h headers into the IR
directory. These passes are already defined in the IR library, and it
doesn't make any sense to have the headers in Analysis.
Long term, I think there is going to be a much better way to divide
these matters. The dominators code should be fully separated into the
abstract graph algorithm and have that put in Support where it becomes
obvious that evn Clang's CFGBlock's can use it. Then the verifier can
manually construct dominance information from the Support-driven
interface while the Analysis library can provide a pass which both
caches, reconstructs, and supports a nice update API.
But those are very long term, and so I don't want to leave the really
confusing structure until that day arrives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r-- | tools/opt/GraphPrinters.cpp | 2 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/GraphPrinters.cpp b/tools/opt/GraphPrinters.cpp index f271966d10..9ec55134f5 100644 --- a/tools/opt/GraphPrinters.cpp +++ b/tools/opt/GraphPrinters.cpp @@ -14,7 +14,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Analysis/Dominators.h" +#include "llvm/IR/Dominators.h" #include "llvm/Pass.h" using namespace llvm; diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 98cfdd9af3..dcff891bcd 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -19,7 +19,6 @@ #include "llvm/Analysis/CallGraphSCCPass.h" #include "llvm/Analysis/LoopPass.h" #include "llvm/Analysis/RegionPass.h" -#include "llvm/Analysis/Verifier.h" #include "llvm/Bitcode/BitcodeWriterPass.h" #include "llvm/CodeGen/CommandFlags.h" #include "llvm/DebugInfo.h" @@ -27,6 +26,7 @@ #include "llvm/IR/IRPrintingPasses.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" +#include "llvm/IR/Verifier.h" #include "llvm/IRReader/IRReader.h" #include "llvm/LinkAllIR.h" #include "llvm/LinkAllPasses.h" |