[llvm] r223617 - IR: Remove reference to ENABLE_MDNODE_UNIQUING
Duncan P. N. Exon Smith
dexonsmith at apple.com
Sun Dec 7 11:02:48 PST 2014
Author: dexonsmith
Date: Sun Dec 7 13:02:48 2014
New Revision: 223617
URL: http://llvm.org/viewvc/llvm-project?rev=223617&view=rev
Log:
IR: Remove reference to ENABLE_MDNODE_UNIQUING
Apparently `MDNode` uniquing used to be optional. I suppose the
configure flag must have disappeared at some point. Change the test so
it actually tests uniquing, and remove the check for
`ENABLE_MDNODE_UNIQUING`.
Modified:
llvm/trunk/unittests/IR/MetadataTest.cpp
Modified: llvm/trunk/unittests/IR/MetadataTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/MetadataTest.cpp?rev=223617&r1=223616&r2=223617&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/MetadataTest.cpp (original)
+++ llvm/trunk/unittests/IR/MetadataTest.cpp Sun Dec 7 13:02:48 2014
@@ -96,11 +96,7 @@ TEST_F(MDNodeTest, Simple) {
MDNode *n5 = MDNode::getIfExists(Context, c1);
MDNode *n6 = MDNode::getIfExists(Context, c2);
EXPECT_NE(n1, n2);
-#ifdef ENABLE_MDNODE_UNIQUING
EXPECT_EQ(n1, n3);
-#else
- (void) n3;
-#endif
EXPECT_EQ(n4, n1);
EXPECT_EQ(n5, n2);
EXPECT_EQ(n6, (Value*)nullptr);
More information about the llvm-commits
mailing list