Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp1237 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local
1279 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement()
1334 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement()
1343 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
1344 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement()
1346 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
1351 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
1354 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
1359 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement()
1360 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
[all …]