Home
last modified time | relevance | path

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

/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp514 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local
557 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement()
629 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement()
638 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
639 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement()
641 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
646 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
649 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
654 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement()
655 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
[all …]