IR: LLVMContextTest => DebugTypeODRUniquingTest, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Apr 2016 17:11:06 +0000 (17:11 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Apr 2016 17:11:06 +0000 (17:11 +0000)
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

llvm/unittests/IR/CMakeLists.txt
llvm/unittests/IR/DebugTypeODRUniquingTest.cpp [moved from llvm/unittests/IR/LLVMContextTest.cpp with 92% similarity]

index 8e63af0..2baa437 100644 (file)
@@ -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
similarity index 92%
rename from llvm/unittests/IR/LLVMContextTest.cpp
rename to llvm/unittests/IR/DebugTypeODRUniquingTest.cpp
index 37656a9..b5a379f 100644 (file)
@@ -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");