summaryrefslogtreecommitdiff
path: root/unittests/Transforms
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-03-21 22:34:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-03-21 22:34:23 +0000
commit283527b3900de7e0037e3ffb9201aca0d7dbe9e4 (patch)
tree7e0249312b945b091bf16d32fd6a07e2de26fa1a /unittests/Transforms
parent06b0783db138ae53bb8189abe64e60dab53efea4 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Transforms')
-rw-r--r--unittests/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Transforms/Utils/Local.cpp b/unittests/Transforms/Utils/Local.cpp
index 8e21ec6a990..049b6e5bca7 100644
--- a/unittests/Transforms/Utils/Local.cpp
+++ b/unittests/Transforms/Utils/Local.cpp
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Transforms/Utils/Local.h"
+#include "llvm/Analysis/Utils/Local.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DIBuilder.h"