[llvm-dev] Removing metadata from LLVM Instruction

Duncan P. N. Exon Smith via llvm-dev llvm-dev at lists.llvm.org
Sun Nov 1 16:15:38 PST 2015


In that case, it's likely that there's another reference to the same metadata node.

> On 2015-Nov-01, at 16:02, Simone Atzeni <simone.at at gmail.com> wrote:
> 
> I think it actually works, but it does not really remove the metadata from the .ll file when clang outputs it.
> 
> Simone
> 
>> On Nov 1, 2015, at 16:45, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
>> 
>> That should work.  Can you reproduce this ToT?
>> 
>>> On 2015-Sep-29, at 15:43, Simone Atzeni via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>> 
>>> Hi,
>>> 
>>> an older thread about removing metadata says to use “setMetadata(Kind, nullptr)” to drop the metadata from the instruction.
>>> I have using this method without success.
>>> When I look at inside the IR code the metadata are still there, any idea why is that?
>>> 
>>> Thanks.
>>> Best,
>>> Simone
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> llvm-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>> 
> 



More information about the llvm-dev mailing list