Displaying 3 results from an estimated 3 matches for "aliaspass".
2013 Apr 16
0
[LLVMdev] creating and inserting a function with variable arguments
Akshay Jain <jivan.molu at gmail.com> writes:
> I have tried it, but I always end up with some kind of error. Can you
> explain how can I get a function type for function which returns void
> (nothing) and it's arguments are (int, int, int, void *, void *, ...) ??
Instead of getting something to cut&paste, you would be much more
enriched if the problematic code and the
2013 Apr 16
2
[LLVMdev] creating and inserting a function with variable arguments
I have tried it, but I always end up with some kind of error. Can you
explain how can I get a function type for function which returns void
(nothing) and it's arguments are (int, int, int, void *, void *, ...) ??
Thanks in advance.
On Tue, Apr 16, 2013 at 7:22 AM, Óscar Fuentes <ofv at wanadoo.es> wrote:
> Akshay Jain <jivan.molu at gmail.com> writes:
>
> > I am
2013 Apr 16
1
[LLVMdev] creating and inserting a function with variable arguments
...nt32Ty(Context));
ParamTys.push_back(PointerType::get(Type::getVoidTy(Context), 0));
ParamTys.push_back(PointerType::get(Type::getVoidTy(Context), 0));
FunctionType *ftype = FunctionType::get(Type::getVoidTy(Context), ParamTys,
true);
And the errors are:
/home/akshay/llvm/llvm-2.9/lib/Transforms/AliasPass/pass2.cpp: In member
function ‘virtual bool {anonymous}::Hello2::runOnFunction(llvm::Function&)’:
/home/akshay/llvm/llvm-2.9/lib/Transforms/AliasPass/pass2.cpp:108:62:
error: no matching function for call to
‘std::vector<llvm::Type*>::push_back(const llvm::IntegerType*) const’
/home/aksha...