Displaying 1 result from an estimated 1 matches for "mcp_trace_stack".
2007 Oct 30
1
[LLVMdev] What am I doing wrong here...
I'm getting a 'function arguments must be value types' assertion from
the following (abridged) code. Basically, I'm writing a pass that
inserts llvm.frameaddress intrinsic calls everywhere 'interesting' that
passes on the result by calling the C function void mcp_trace_stack(char
*ptr). First I grab the functions themselves:
Constant *MCPTraceStack, *LLVMFrameAddress;
std::vector<const Type*> argstype;
argstype.push_back(PointerType::get(Type::Int8Ty));
FunctionType *FT = FunctionType::get(Type::VoidTy, argstype, false);
MCPTraceStack...