Home
last modified time | relevance | path

Searched refs:oldMain (Results 1 – 1 of 1) sorted by relevance

/external/llvm/tools/bugpoint/
DMiscompilation.cpp771 if (Function *oldMain = Safe->getFunction("main")) in CleanupAndPrepareModules() local
772 if (!oldMain->isDeclaration()) { in CleanupAndPrepareModules()
774 oldMain->setName("llvm_bugpoint_old_main"); in CleanupAndPrepareModules()
776 Function *newMain = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
781 Function *oldMainProto = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
783 oldMain->getName(), Test); in CleanupAndPrepareModules()
788 OI = oldMain->arg_begin(); I != E; ++I, ++OI) { in CleanupAndPrepareModules()