Home
last modified time | relevance | path

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

/external/llvm/tools/bugpoint/
DMiscompilation.cpp790 if (Function *oldMain = Safe->getFunction("main")) in CleanupAndPrepareModules() local
791 if (!oldMain->isDeclaration()) { in CleanupAndPrepareModules()
793 oldMain->setName("llvm_bugpoint_old_main"); in CleanupAndPrepareModules()
795 Function *newMain = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
800 Function *oldMainProto = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
802 oldMain->getName(), Test); in CleanupAndPrepareModules()
807 OI = oldMain->arg_begin(); I != E; ++I, ++OI) { in CleanupAndPrepareModules()