summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-11-09 12:26:54 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-11-09 12:26:54 +0000
commit7caea41545fc9e8afb47073f6699073a5f635c68 (patch)
treeae91e30b17272501709c4d2838dac5849659e329 /llvm/unittests
parentdfc9b586aedc17dc673bec02e4baf2156d94d6a0 (diff)
downloadbcm5719-llvm-7caea41545fc9e8afb47073f6699073a5f635c68.tar.gz
bcm5719-llvm-7caea41545fc9e8afb47073f6699073a5f635c68.zip
Move the old pass manager infrastructure into a legacy namespace and
give the files a legacy prefix in the right directory. Use forwarding headers in the old locations to paper over the name change for most clients during the transitional period. No functionality changed here! This is just clearing some space to reduce renaming churn later on with a new system. Even when the new stuff starts to go in, it is going to be hidden behind a flag and off-by-default as it is still WIP and under development. This patch is specifically designed so that very little out-of-tree code has to change. I'm going to work as hard as I can to keep that the case. Only direct forward declarations of the PassManager class are impacted by this change. llvm-svn: 194324
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/IR/CMakeLists.txt2
-rw-r--r--llvm/unittests/IR/LegacyPassManagerTest.cpp (renamed from llvm/unittests/IR/PassManagerTest.cpp)9
2 files changed, 9 insertions, 2 deletions
diff --git a/llvm/unittests/IR/CMakeLists.txt b/llvm/unittests/IR/CMakeLists.txt
index c53043ef80e..1ab8e384c8a 100644
--- a/llvm/unittests/IR/CMakeLists.txt
+++ b/llvm/unittests/IR/CMakeLists.txt
@@ -10,9 +10,9 @@ set(IRSources
DominatorTreeTest.cpp
IRBuilderTest.cpp
InstructionsTest.cpp
+ LegacyPassManagerTest.cpp
MDBuilderTest.cpp
MetadataTest.cpp
- PassManagerTest.cpp
PatternMatch.cpp
TypeBuilderTest.cpp
TypesTest.cpp
diff --git a/llvm/unittests/IR/PassManagerTest.cpp b/llvm/unittests/IR/LegacyPassManagerTest.cpp
index 48514fc5686..11841bdeac0 100644
--- a/llvm/unittests/IR/PassManagerTest.cpp
+++ b/llvm/unittests/IR/LegacyPassManagerTest.cpp
@@ -1,4 +1,4 @@
-//===- llvm/unittest/IR/PassManager.cpp - PassManager unit tests ----------===//
+//===- llvm/unittest/IR/LegacyPassManager.cpp - Legacy PassManager tests --===//
//
// The LLVM Compiler Infrastructure
//
@@ -6,6 +6,13 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+//
+// This unit test exercises the legacy pass manager infrastructure. We use the
+// old names as well to ensure that the source-level compatibility wrapper
+// works for out-of-tree code that expects to include llvm/PassManager.h and
+// subclass the core pass classes.
+//
+//===----------------------------------------------------------------------===//
#include "llvm/PassManager.h"
#include "llvm/ADT/SmallVector.h"
OpenPOWER on IntegriCloud