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()
627 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement()
636 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
637 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement()
639 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
644 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
647 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
652 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement()
653 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
[all …]