[WinEH] Use operand bundles to describe call sites
[oota-llvm.git] / include / llvm / Transforms / Utils / Local.h
index 81598a3dddf28b48d00f8d1477a4d9c7bb68bca4..81b376f0c212cf445ecd2d8ade9d28a8db4ca3a8 100644 (file)
@@ -288,6 +288,10 @@ bool replaceDbgDeclare(Value *Address, Value *NewAddress,
 bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
                                 DIBuilder &Builder, bool Deref, int Offset = 0);
 
+/// \brief Insert an unreachable instruction before the specified
+/// instruction, making it and the rest of the code in the block dead.
+void changeToUnreachable(Instruction *I, bool UseLLVMTrap);
+
 /// Replace 'BB's terminator with one that does not have an unwind successor
 /// block.  Rewrites `invoke` to `call`, etc.  Updates any PHIs in unwind
 /// successor.