Lines Matching refs:OldFunc
221 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc()
240 OldFunc->setSubprogram(Subprogram); in CreateOldFunctionBodyAndDI()
243 BasicBlock* Entry = BasicBlock::Create(C, "", OldFunc); in CreateOldFunctionBodyAndDI()
277 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
286 Function* OldFunc; member in __anon13ab407f0111::CloneFunc
294 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
308 EXPECT_TRUE(Sub == OldFunc->getSubprogram()); in TEST_F()
317 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
318 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
338 EXPECT_EQ(OldFunc->getSubprogram(), OldSubprogram); in TEST_F()
354 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
355 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
366 EXPECT_EQ(OldFunc, cast<AllocaInst>(OldIntrin->getAddress())-> in TEST_F()
373 EXPECT_EQ(OldFunc->getSubprogram(), in TEST_F()
383 EXPECT_EQ(OldFunc->getSubprogram(), in TEST_F()