search for: runtimefuncargs

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

2010 Aug 19
1
[LLVMdev] Function Arguments
...is a string of characters. I would like to somehow associate the character string with a pointer that I can pass to the function, just like I've shown here for the integer. The following is the code I'm working with so far: // Declare the function as external vector<const Type*> runTimeFuncArgs; runTimeFuncArgs.push_back(Type::getInt32Ty(getGlobalContext())); // int type, first arg runTimeFuncArgs.push_back(ArrayType::get(Type::getInt8Ty(getGlobalContext()), str.length() + 1)); // 2nd arg as an array FunctionType *runTimeFuncType = FunctionType::get(Type::getInt32Ty(getGlobalContext()...