search for: llvmisfunctionvararg

Displaying 1 result from an estimated 1 matches for "llvmisfunctionvararg".

2013 May 05
0
[LLVMdev] llvm-c: Types of functions
...else printf("Not a Func\n"); LLVMTypeRef testType; testType = LLVMTypeOf(testFunc); printf("Type is: %d\n", LLVMGetTypeKind(testType)); printf("For reference: Function: %d Pointer: %d\n", LLVMFunctionTypeKind, LLVMPointerTypeKind); if( LLVMIsFunctionVarArg(testType)) printf("is vaarg\n"); else printf("no vararg\n"); And at runtime I see that the LLVMTypeOf is corresponds to LLVMPointerTypeKind. ./app Is a Function Type is: 12 For reference: Function: 9 Pointer: 12 Assertion failed: (isa<X>(Val) && "cast&lt...