aboutsummaryrefslogtreecommitdiff
path: root/unittests/VMCore/MetadataTest.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-23 01:07:34 +0000
committerDevang Patel <dpatel@apple.com>2009-07-23 01:07:34 +0000
commit104cf9e02b0ed94d4173869a598af6c6972a8660 (patch)
tree424e9727423125da907cebf5f0ac9bc19d47e9fd /unittests/VMCore/MetadataTest.cpp
parent0aaf4e91c2961585c160af0cc87f040301aafbd2 (diff)
Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK in bitcode file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/VMCore/MetadataTest.cpp')
-rw-r--r--unittests/VMCore/MetadataTest.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/unittests/VMCore/MetadataTest.cpp b/unittests/VMCore/MetadataTest.cpp
index c92bb139b4..732719ec5c 100644
--- a/unittests/VMCore/MetadataTest.cpp
+++ b/unittests/VMCore/MetadataTest.cpp
@@ -101,25 +101,6 @@ TEST(MDNodeTest, Simple) {
oss2.str().c_str());
}
-TEST(MDNodeTest, RAUW) {
- Constant *C = getGlobalContext().getConstantInt(Type::Int32Ty, 1);
- Instruction *I = new BitCastInst(C, Type::Int32Ty);
-
- Value *const V1 = I;
- MDNode *n1 = getGlobalContext().getMDNode(&V1, 1);
- WeakVH wn1 = n1;
-
- Value *const V2 = C;
- MDNode *n2 = getGlobalContext().getMDNode(&V2, 1);
- WeakVH wn2 = n2;
-
- EXPECT_NE(wn1, wn2);
-
- I->replaceAllUsesWith(C);
-
- EXPECT_EQ(wn1, wn2);
-}
-
TEST(MDNodeTest, Delete) {
Constant *C = getGlobalContext().getConstantInt(Type::Int32Ty, 1);
Instruction *I = new BitCastInst(C, Type::Int32Ty);