• Home
  • Raw
  • Download

Lines Matching refs:m_pInput

31 ELFReaderTest::ELFReaderTest() : m_pInput(NULL) {  in ELFReaderTest()
63 m_pInput = m_pIRBuilder->ReadInput("test_x86_64", path); in SetUp()
64 ASSERT_TRUE(NULL != m_pInput); in SetUp()
66 ASSERT_TRUE(m_pInput->hasMemArea()); in SetUp()
69 m_pInput->memArea()->request(m_pInput->fileOffset(), hdr_size); in SetUp()
71 bool shdr_result = m_pELFReader->readSectionHeaders(*m_pInput, ELF_hdr); in SetUp()
83 ASSERT_EQ(m_pInput->context()->numOfSections(), 13u); in TEST_F()
84 LDContext::const_sect_iterator iter = m_pInput->context()->sectBegin(); in TEST_F()
97 ASSERT_TRUE(m_pInput->hasMemArea()); in TEST_F()
98 ASSERT_TRUE(m_pInput->hasContext()); in TEST_F()
99 m_pInput->setType(Input::Object); in TEST_F()
102 LDSection* symtab_shdr = m_pInput->context()->getSection(".symtab"); in TEST_F()
108 llvm::StringRef symtab_region = m_pInput->memArea()->request( in TEST_F()
109 m_pInput->fileOffset() + symtab_shdr->offset(), symtab_shdr->size()); in TEST_F()
111 llvm::StringRef strtab_region = m_pInput->memArea()->request( in TEST_F()
112 m_pInput->fileOffset() + strtab_shdr->offset(), strtab_shdr->size()); in TEST_F()
115 *m_pInput, *m_pIRBuilder, symtab_region, strtab); in TEST_F()
117 ASSERT_EQ("hello.c", std::string(m_pInput->context()->getSymbol(1)->name())); in TEST_F()
118 ASSERT_EQ("puts", std::string(m_pInput->context()->getSymbol(10)->name())); in TEST_F()
119 ASSERT_TRUE(NULL == m_pInput->context()->getSymbol(11)); in TEST_F()
122 MemoryArea* mem = m_pInput->memArea(); in TEST_F()
123 LDContext::sect_iterator rs = m_pInput->context()->relocSectBegin(); in TEST_F()
124 ASSERT_TRUE(rs != m_pInput->context()->relocSectEnd()); in TEST_F()
127 uint64_t offset = m_pInput->fileOffset() + (*rs)->offset(); in TEST_F()
133 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, region)); in TEST_F()
148 ASSERT_TRUE(m_pELFObjReader->readSections(*m_pInput)); in TEST_F()
153 ASSERT_TRUE(m_pELFObjReader->isMyFormat(*m_pInput, doContinue)); in TEST_F()