diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-04 11:17:44 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-04 11:17:44 +0000 |
commit | eb3d76da81e2148ed7c577594c873ba147f4f435 (patch) | |
tree | bcfe1da7d3cafd8e4fba57297cd7360fafc72e95 /unittests | |
parent | df3d8e8b4dabcf0437a78a001f91208d264c2387 (diff) | |
download | llvm-eb3d76da81e2148ed7c577594c873ba147f4f435.tar.gz llvm-eb3d76da81e2148ed7c577594c873ba147f4f435.tar.bz2 llvm-eb3d76da81e2148ed7c577594c873ba147f4f435.tar.xz |
[Modules] Move ValueHandle into the IR library where Value itself lives.
Move the test for this class into the IR unittests as well.
This uncovers that ValueMap too is in the IR library. Ironically, the
unittest for ValueMap is useless in the Support library (honestly, so
was the ValueHandle test) and so it already lives in the IR unittests.
Mmmm, tasty layering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/IR/CMakeLists.txt | 1 | ||||
-rw-r--r-- | unittests/IR/MetadataTest.cpp | 2 | ||||
-rw-r--r-- | unittests/IR/ValueHandleTest.cpp (renamed from unittests/Support/ValueHandleTest.cpp) | 4 | ||||
-rw-r--r-- | unittests/Support/CMakeLists.txt | 1 |
4 files changed, 4 insertions, 4 deletions
diff --git a/unittests/IR/CMakeLists.txt b/unittests/IR/CMakeLists.txt index 305079f2dd..fd8d842c80 100644 --- a/unittests/IR/CMakeLists.txt +++ b/unittests/IR/CMakeLists.txt @@ -19,6 +19,7 @@ set(IRSources PatternMatch.cpp TypeBuilderTest.cpp TypesTest.cpp + ValueHandleTest.cpp ValueMapTest.cpp ValueTest.cpp VerifierTest.cpp diff --git a/unittests/IR/MetadataTest.cpp b/unittests/IR/MetadataTest.cpp index 352e83ee66..00a2783fbf 100644 --- a/unittests/IR/MetadataTest.cpp +++ b/unittests/IR/MetadataTest.cpp @@ -13,7 +13,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/Type.h" -#include "llvm/Support/ValueHandle.h" +#include "llvm/IR/ValueHandle.h" #include "llvm/Support/raw_ostream.h" #include "gtest/gtest.h" using namespace llvm; diff --git a/unittests/Support/ValueHandleTest.cpp b/unittests/IR/ValueHandleTest.cpp index 05aafa2d05..bbca701776 100644 --- a/unittests/Support/ValueHandleTest.cpp +++ b/unittests/IR/ValueHandleTest.cpp @@ -1,4 +1,4 @@ -//===- llvm/unittest/Support/ValueHandleTest.cpp - ValueHandle tests --------===// +//===- ValueHandleTest.cpp - ValueHandle tests ----------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Support/ValueHandle.h" +#include "llvm/IR/ValueHandle.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Instructions.h" diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt index bfbef982e2..46c5c334ff 100644 --- a/unittests/Support/CMakeLists.txt +++ b/unittests/Support/CMakeLists.txt @@ -35,7 +35,6 @@ add_llvm_unittest(SupportTests ThreadLocalTest.cpp TimeValueTest.cpp UnicodeTest.cpp - ValueHandleTest.cpp YAMLIOTest.cpp YAMLParserTest.cpp formatted_raw_ostream_test.cpp |