Method
invoke
(
&mut self,
ty: &'ll Type,
llfn: &'ll Value,
args: &[&'ll Value],
then: &'ll BasicBlock,
_catch: &'ll BasicBlock,
funclet: Option<&()>,
)
Source from the content-addressed store, hash-verified
| 258 | } |
| 259 | |
| 260 | fn invoke( |
| 261 | &mut self, |
| 262 | ty: &'ll Type, |
| 263 | llfn: &'ll Value, |
| 264 | args: &[&'ll Value], |
| 265 | then: &'ll BasicBlock, |
| 266 | _catch: &'ll BasicBlock, |
| 267 | funclet: Option<&()>, |
| 268 | ) -> &'ll Value { |
| 269 | trace!("invoke"); |
| 270 | let call = self.call(ty, llfn, args, funclet); |
| 271 | // exceptions arent a thing, go directly to the `then` block |
| 272 | unsafe { llvm::LLVMBuildBr(self.llbuilder, then) }; |
| 273 | call |
| 274 | } |
| 275 | |
| 276 | fn unreachable(&mut self) { |
| 277 | trace!("Unreachable"); |
Callers
nothing calls this directly
Tested by
no test coverage detected