diff options
author | David Blaikie <dblaikie@gmail.com> | 2018-03-21 22:34:23 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2018-03-21 22:34:23 +0000 |
commit | 2be3922807b36b30668206593d4ff7f458f6a939 (patch) | |
tree | bf732dc5d1cd4f5ff01b618190051b43029708ef /llvm/lib/Transforms/IPO/PruneEH.cpp | |
parent | c08e5afb7cfc82eb1bff67d4063d2f4bc1f4986a (diff) | |
download | bcm5719-llvm-2be3922807b36b30668206593d4ff7f458f6a939.tar.gz bcm5719-llvm-2be3922807b36b30668206593d4ff7f458f6a939.zip |
Fix a couple of layering violations in Transforms
Remove #include of Transforms/Scalar.h from Transform/Utils to fix layering.
Transforms depends on Transforms/Utils, not the other way around. So
remove the header and the "createStripGCRelocatesPass" function
declaration (& definition) that is unused and motivated this dependency.
Move Transforms/Utils/Local.h into Analysis because it's used by
Analysis/MemoryBuiltins.cpp.
llvm-svn: 328165
Diffstat (limited to 'llvm/lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/PruneEH.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 46b08818904..786a66a4fe5 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/lib/Transforms/IPO/PruneEH.cpp @@ -19,6 +19,7 @@ #include "llvm/Analysis/CallGraph.h" #include "llvm/Analysis/CallGraphSCCPass.h" #include "llvm/Analysis/EHPersonalities.h" +#include "llvm/Analysis/Utils/Local.h" #include "llvm/IR/CFG.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Function.h" @@ -27,7 +28,6 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/IPO.h" -#include "llvm/Transforms/Utils/Local.h" #include <algorithm> using namespace llvm; |