[PATCH] D46815: [DbgInfo] Fix StripDebugInfo

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 4 10:32:34 PDT 2018


Opt's -strip-dead-prototypes mode does exactly this.

  echo "declare i32 @foo()" | ./bin/opt -strip-dead-prototypes -S -o -
  (empty)

I don't think it's necessary to teach StripDebugInfo() to do the same thing.

vedant

> On Jun 4, 2018, at 10:29 AM, Son Tuan Vu via Phabricator <reviews at reviews.llvm.org> wrote:
> 
> tyb0807 added a comment.
> 
> Hmmm, sorry but I still don't understand how do we remove `declare @llvm.dbg.*` from the IR though? Or you think that this is not necessary?
> 
> 
> https://reviews.llvm.org/D46815
> 
> 
> 



More information about the llvm-commits mailing list