Fixed Builder.select (Paulo Silva); added Instruction.is_terminator.

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@40 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2008-09-10 11:26:57 +00:00
commit bf2d901db2
7 changed files with 28 additions and 5 deletions

View file

@ -84,6 +84,10 @@ LLVMValueRef LLVMBuildVFCmp(LLVMBuilderRef B, LLVMRealPredicate Op,
}
#endif
unsigned LLVMInstIsTerminator(LLVMValueRef I) {
return unwrap<Instruction>(I)->isTerminator() ? 1 : 0;
}
LLVMValueRef LLVMBuildRetMultiple(LLVMBuilderRef B, LLVMValueRef *Values,
unsigned NumValues) {
std::vector<Value *> Vs;