Lines Matching refs:TestPrinter
33 TestPrinter = std::move(ExpectedTestPrinter.get()); in setupTestPrinter()
40 return TestPrinter != nullptr; in init()
43 std::unique_ptr<TestAsmPrinter> TestPrinter; member in __anon56a29bc00111::AsmPrinterFixtureBase
56 Val = TestPrinter->getCtx().createTempSymbol(); in init()
57 Sec = TestPrinter->getCtx().getELFSection(".tst", ELF::SHT_PROGBITS, 0); in init()
59 TestPrinter->getMS().SwitchSection(Sec); in init()
60 TestPrinter->getMS().emitLabel(Val); in init()
73 EXPECT_CALL(TestPrinter->getMS(), EmitCOFFSecRel32(Val, 0)); in TEST_F()
74 TestPrinter->getAP()->emitDwarfSymbolReference(Val, false); in TEST_F()
81 EXPECT_CALL(TestPrinter->getMS(), in TEST_F()
83 TestPrinter->getAP()->emitDwarfSymbolReference(Val, true); in TEST_F()
91 EXPECT_CALL(TestPrinter->getMS(), emitValueImpl(_, 4, _)) in TEST_F()
93 TestPrinter->getAP()->emitDwarfSymbolReference(Val, false); in TEST_F()
104 EXPECT_CALL(TestPrinter->getMS(), in TEST_F()
106 TestPrinter->getAP()->emitDwarfSymbolReference(Val, true); in TEST_F()
114 EXPECT_CALL(TestPrinter->getMS(), emitValueImpl(_, 8, _)) in TEST_F()
116 TestPrinter->getAP()->emitDwarfSymbolReference(Val, false); in TEST_F()
127 EXPECT_CALL(TestPrinter->getMS(), in TEST_F()
129 TestPrinter->getAP()->emitDwarfSymbolReference(Val, true); in TEST_F()
140 Val.Symbol = TestPrinter->getCtx().createTempSymbol(); in init()
153 EXPECT_CALL(TestPrinter->getMS(), emitValueImpl(_, 4, _)) in TEST_F()
155 TestPrinter->getAP()->emitDwarfStringOffset(Val); in TEST_F()
167 TestPrinter->setDwarfUsesRelocationsAcrossSections(false); in TEST_F()
168 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(Val.Offset, 4)); in TEST_F()
169 TestPrinter->getAP()->emitDwarfStringOffset(Val); in TEST_F()
177 EXPECT_CALL(TestPrinter->getMS(), emitValueImpl(_, 8, _)) in TEST_F()
179 TestPrinter->getAP()->emitDwarfStringOffset(Val); in TEST_F()
191 TestPrinter->setDwarfUsesRelocationsAcrossSections(false); in TEST_F()
192 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(Val.Offset, 8)); in TEST_F()
193 TestPrinter->getAP()->emitDwarfStringOffset(Val); in TEST_F()
203 Label = TestPrinter->getCtx().createTempSymbol(); in init()
216 EXPECT_CALL(TestPrinter->getMS(), emitValueImpl(_, 4, _)) in TEST_F()
218 TestPrinter->getAP()->emitDwarfOffset(Label, Offset); in TEST_F()
240 EXPECT_CALL(TestPrinter->getMS(), emitValueImpl(_, 8, _)) in TEST_F()
242 TestPrinter->getAP()->emitDwarfOffset(Label, Offset); in TEST_F()
268 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(Val, 4)); in TEST_F()
269 TestPrinter->getAP()->emitDwarfLengthOrOffset(Val); in TEST_F()
276 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(Val, 8)); in TEST_F()
277 TestPrinter->getAP()->emitDwarfLengthOrOffset(Val); in TEST_F()
287 EXPECT_EQ(TestPrinter->getAP()->getUnitLengthFieldByteSize(), 4u); in TEST_F()
294 EXPECT_EQ(TestPrinter->getAP()->getUnitLengthFieldByteSize(), 12u); in TEST_F()
303 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(_, _)).Times(0); in TEST_F()
304 TestPrinter->getAP()->maybeEmitDwarf64Mark(); in TEST_F()
311 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(dwarf::DW_LENGTH_DWARF64, 4)); in TEST_F()
312 TestPrinter->getAP()->maybeEmitDwarf64Mark(); in TEST_F()
324 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(Val, 4)); in TEST_F()
325 TestPrinter->getAP()->emitDwarfUnitLength(Val, ""); in TEST_F()
333 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(dwarf::DW_LENGTH_DWARF64, 4)); in TEST_F()
334 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(Val, 8)); in TEST_F()
336 TestPrinter->getAP()->emitDwarfUnitLength(Val, ""); in TEST_F()
347 Hi = TestPrinter->getCtx().createTempSymbol(); in init()
348 Lo = TestPrinter->getCtx().createTempSymbol(); in init()
360 EXPECT_CALL(TestPrinter->getMS(), emitAbsoluteSymbolDiff(Hi, Lo, 4)); in TEST_F()
361 TestPrinter->getAP()->emitDwarfUnitLength(Hi, Lo, ""); in TEST_F()
369 EXPECT_CALL(TestPrinter->getMS(), emitIntValue(dwarf::DW_LENGTH_DWARF64, 4)); in TEST_F()
370 EXPECT_CALL(TestPrinter->getMS(), emitAbsoluteSymbolDiff(Hi, Lo, 8)); in TEST_F()
372 TestPrinter->getAP()->emitDwarfUnitLength(Hi, Lo, ""); in TEST_F()
397 auto *AP = TestPrinter->getAP(); in init()
404 PM.add(TestPrinter->releaseAP()); // Takes ownership of destroying AP in init()