Redo the scheme for block context chaining and termination, to simplify and support ret better.

This commit is contained in:
Graydon Hoare
2010-11-10 17:46:49 -08:00
parent a404e54261
commit d1e7f0b414
3 changed files with 91 additions and 70 deletions

View File

@@ -679,6 +679,8 @@ native mod llvm = llvm_lib {
fn LLVMBuildPtrDiff(BuilderRef B, ValueRef LHS,
ValueRef RHS, sbuf Name) -> ValueRef;
/* Selected entries from the downcasts. */
fn LLVMIsATerminatorInst(ValueRef Inst) -> ValueRef;
/** Writes a module to the specified path. Returns 0 on success. */
fn LLVMWriteBitcodeToFile(ModuleRef M, sbuf Path) -> int;