summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-19 17:11:06 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-19 17:11:06 +0000
commit1561709d57187de7ae057c6a7c4866cbe9753608 (patch)
treee4ac000b2202f66a54c49409d46f5e02abd04a09
parent6fa512cecf40d3db247c161363f157dea6e03b31 (diff)
downloadbcm5719-llvm-1561709d57187de7ae057c6a7c4866cbe9753608.tar.gz
bcm5719-llvm-1561709d57187de7ae057c6a7c4866cbe9753608.zip
IR: LLVMContextTest => DebugTypeODRUniquingTest, NFC
The second test in this file is actually testing DICompositeType API, not LLVMContext API (after r266742 moved it to a higher level). This really doesn't make sense in an LLVMContextTest. Rename the tests before adding more. llvm-svn: 266764
-rw-r--r--llvm/unittests/IR/CMakeLists.txt2
-rw-r--r--llvm/unittests/IR/DebugTypeODRUniquingTest.cpp (renamed from llvm/unittests/IR/LLVMContextTest.cpp)6
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/IR/CMakeLists.txt b/llvm/unittests/IR/CMakeLists.txt
index 8e63af05e0b..2baa4370c70 100644
--- a/llvm/unittests/IR/CMakeLists.txt
+++ b/llvm/unittests/IR/CMakeLists.txt
@@ -11,12 +11,12 @@ set(IRSources
ConstantRangeTest.cpp
ConstantsTest.cpp
DebugInfoTest.cpp
+ DebugTypeODRUniquingTest.cpp
DominatorTreeTest.cpp
FunctionTest.cpp
IRBuilderTest.cpp
InstructionsTest.cpp
IntrinsicsTest.cpp
- LLVMContextTest.cpp
LegacyPassManagerTest.cpp
MDBuilderTest.cpp
MetadataTest.cpp
diff --git a/llvm/unittests/IR/LLVMContextTest.cpp b/llvm/unittests/IR/DebugTypeODRUniquingTest.cpp
index 37656a9b83a..b5a379f49bd 100644
--- a/llvm/unittests/IR/LLVMContextTest.cpp
+++ b/llvm/unittests/IR/DebugTypeODRUniquingTest.cpp
@@ -1,4 +1,4 @@
-//===- LLVMContextTest.cpp - LLVMContext unit tests -----------------------===//
+//===- DebugTypeODRUniquingTest.cpp - Debug type ODR uniquing tests -------===//
//
// The LLVM Compiler Infrastructure
//
@@ -14,7 +14,7 @@ using namespace llvm;
namespace {
-TEST(LLVMContextTest, enableDebugTypeODRUniquing) {
+TEST(DebugTypeODRUniquingTest, enableDebugTypeODRUniquing) {
LLVMContext Context;
EXPECT_FALSE(Context.isODRUniquingDebugTypes());
Context.enableDebugTypeODRUniquing();
@@ -23,7 +23,7 @@ TEST(LLVMContextTest, enableDebugTypeODRUniquing) {
EXPECT_FALSE(Context.isODRUniquingDebugTypes());
}
-TEST(LLVMContextTest, getOrInsertODRUniquedType) {
+TEST(DebugTypeODRUniquingTest, getODRType) {
LLVMContext Context;
MDString &UUID = *MDString::get(Context, "string");
OpenPOWER on IntegriCloud