From 1561709d57187de7ae057c6a7c4866cbe9753608 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 19 Apr 2016 17:11:06 +0000 Subject: [PATCH] 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 --- llvm/unittests/IR/CMakeLists.txt | 2 +- .../IR/{LLVMContextTest.cpp => DebugTypeODRUniquingTest.cpp} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename llvm/unittests/IR/{LLVMContextTest.cpp => DebugTypeODRUniquingTest.cpp} (92%) diff --git a/llvm/unittests/IR/CMakeLists.txt b/llvm/unittests/IR/CMakeLists.txt index 8e63af0..2baa437 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 similarity index 92% rename from llvm/unittests/IR/LLVMContextTest.cpp rename to llvm/unittests/IR/DebugTypeODRUniquingTest.cpp index 37656a9..b5a379f 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"); -- 2.7.4