Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp513 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local
556 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement()
631 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement()
640 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
641 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement()
643 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
648 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
651 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
656 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement()
657 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
[all …]