[PATCH] D46815: [DbgInfo] Fix StripDebugInfo

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


vsk added a subscriber: tyb0807.
vsk added a comment.

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


https://reviews.llvm.org/D46815





More information about the llvm-commits mailing list