forked from OSchip/llvm-project
don't unittest mdnode printing, we have disassembler tests for this.
llvm-svn: 92328
This commit is contained in:
parent
2c48c64821
commit
1e6e36785e
|
@ -99,17 +99,6 @@ TEST(MDNodeTest, Simple) {
|
|||
|
||||
EXPECT_EQ(1u, n2->getNumOperands());
|
||||
EXPECT_EQ(n1, n2->getOperand(0));
|
||||
|
||||
std::string Str;
|
||||
raw_string_ostream oss(Str);
|
||||
n1->print(oss);
|
||||
EXPECT_STREQ("!0 = metadata !{metadata !\"abc\", i8 0, metadata !\"123\"}\n",
|
||||
oss.str().c_str());
|
||||
Str.clear();
|
||||
n2->print(oss);
|
||||
EXPECT_STREQ("!0 = metadata !{metadata !1}\n"
|
||||
"!1 = metadata !{metadata !\"abc\", i8 0, metadata !\"123\"}\n",
|
||||
oss.str().c_str());
|
||||
}
|
||||
|
||||
TEST(MDNodeTest, Delete) {
|
||||
|
@ -123,11 +112,6 @@ TEST(MDNodeTest, Delete) {
|
|||
EXPECT_EQ(n, wvh);
|
||||
|
||||
delete I;
|
||||
|
||||
std::string Str;
|
||||
raw_string_ostream oss(Str);
|
||||
wvh->print(oss);
|
||||
EXPECT_STREQ("!0 = metadata !{null}\n", oss.str().c_str());
|
||||
}
|
||||
|
||||
TEST(NamedMDNodeTest, Search) {
|
||||
|
@ -147,8 +131,7 @@ TEST(NamedMDNodeTest, Search) {
|
|||
std::string Str;
|
||||
raw_string_ostream oss(Str);
|
||||
NMD->print(oss);
|
||||
EXPECT_STREQ("!llvm.NMD1 = !{!0, !1}\n!0 = metadata !{i32 1}\n"
|
||||
"!1 = metadata !{i32 2}\n",
|
||||
EXPECT_STREQ("!llvm.NMD1 = !{!0, !1}\n",
|
||||
oss.str().c_str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue