Lines Matching defs:B2

86   auto &B2 = G.createContentBlock(Sec1, BlockContent, B2Addr, 8, 0);
89 auto &S2 = G.addDefinedSymbol(B2, 4, "S2", 4, Linkage::Strong, Scope::Default,
106 EXPECT_TRUE(llvm::count(Sec1.blocks(), &B2));
116 EXPECT_TRUE(llvm::count(G.blocks(), &B2));
235 auto &B2 = G.createMutableContentBlock(Sec, MutableContent,
238 EXPECT_TRUE(B2.isContentMutable()) << "Expected B2 content to be mutable";
239 EXPECT_EQ(B2.getSize(), MutableContent.size());
244 EXPECT_TRUE(B3.isContentMutable()) << "Expected B2 content to be mutable";
497 auto &B2 = G.createContentBlock(Sec, BlockContent, B2Addr, 8, 0);
506 G.transferDefinedSymbol(S1, B2, 0, 64);
508 EXPECT_EQ(&S1.getBlock(), &B2) << "Block was not updated";
535 auto &B2 = G.createContentBlock(Sec2, BlockContent, B2Addr, 8, 0);
542 G.transferDefinedSymbol(S1, B2, 0, 64);
544 EXPECT_EQ(&S1.getBlock(), &B2) << "Block was not updated";
570 auto &B2 = G.createContentBlock(Sec1, BlockContent, B2Addr, 8, 0);
578 // ... and on B2.
579 G.addDefinedSymbol(B2, 0, "S3", B2.getSize(), Linkage::Strong, Scope::Default,
581 G.addDefinedSymbol(B2, 1, "S4", B2.getSize() - 1, Linkage::Strong,
621 auto &B2 = G.createContentBlock(Sec2, BlockContent, B2Addr, 8, 0);
628 G.addDefinedSymbol(B2, 0, "S2", B2.getSize(), Linkage::Strong, Scope::Default,
630 G.addDefinedSymbol(B3, 0, "S3", B2.getSize(), Linkage::Strong, Scope::Default,
634 EXPECT_EQ(&B2.getSection(), &Sec2);
666 EXPECT_EQ(&B2.getSection(), &Sec1)
667 << "Expected B2.getSection() to have been changed to &Sec1";
744 auto &B2 = *Blocks[1];
752 EXPECT_EQ(B2.getAddress(), B1Addr + 4);
753 EXPECT_EQ(B2.getContent(), BlockContent.slice(4, 8));
754 EXPECT_EQ(B2.edges_size(), 2U);
760 // Check that symbols in B2 were transferred as expected:
762 // B2; and S4 to B3. Symbols should have had their offsets slid to account
767 EXPECT_EQ(&S2.getBlock(), &B2);
770 EXPECT_EQ(&S3.getBlock(), &B2);
779 EXPECT_EQ(&S6.getBlock(), &B2);
791 EXPECT_EQ(llvm::size(B2.edges()), 2);
792 if (size(B2.edges()) == 2) {
793 auto *E1 = &*B2.edges().begin();
794 auto *E2 = &*(B2.edges().begin() + 1);