[LLVMdev] Inserting Instructions (pass)

Chris Lattner clattner at apple.com
Fri Jul 31 22:23:55 PDT 2009


On Jul 31, 2009, at 5:04 PM, Michael Graumann wrote:

> Thank you Chris,
> for your hint, but I am still too stupid. I tried two versions
>
> asm_arguments.push_back(Type::VoidTy);
> FunctionType *asm_type = FunctionType::get(Type::VoidTy,  
> asm_arguments, false);
>
> Alternatively
>
> FunctionType *asm_type = FunctionType::get(Type::VoidTy,  
> std::vector<const Type*>(), false);
>
> . Can you give me a snippet of example code, or somebody else?
> Thanks for help

Yes, either of these should work.  What *problem* are you seeing?

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090731/108a7266/attachment.html>


More information about the llvm-dev mailing list