Displaying 1 result from an estimated 1 matches for "filemembuff".
2013 May 05
0
[LLVMdev] llvm-c: Types of functions
...m that
pull it's type as a LLVMTypeRef. This would be a 'function type', from which I can pull info about
the return type and iterate the arguments, etc. At least, that's what I'm trying to do in my code:
    LLVMContextRef context = LLVMContextCreate();
    LLVMMemoryBufferRef fileMemBuff;
    LLVMCreateMemoryBufferWithContentsOfFile(
            "test.bin", &fileMemBuff, &msg);
     
    LLVMModuleRef module;
    LLVMGetBitcodeModuleInContext(
            context, fileMemBuff, &module, &msg);
    LLVMValueRef testFunc  = LLVMGetNamedFunction(module, "...