[LLVMdev] metadata

Eric Christopher echristo at apple.com
Mon Sep 17 11:28:11 PDT 2012


On Sep 14, 2012, at 11:44 AM, George Baah <georgebaah at gmail.com> wrote:

> Hi Everyone,
>    I am processing instructions in a module and I would like to avoid 
> "call void @llvm.dbg.declare ..." instructions as they just provide debug info 
> about a given instruction. Is there a way to avoid these instructions without 
> having to turn off the -g option? Thanks.

Do you mean the metadata or the intrinsics? You can check for the intrinsic
and just skip them. Look at some of the transform passes on how to do that.

-eric



More information about the llvm-dev mailing list