[PATCH] D70250: [llvm-cxxfilt] Improve strip-underscore behavior

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 09:38:37 PST 2019


steven_wu created this revision.
steven_wu added reviewers: davis-matthew, compnerd, erik.pilkington, dexonsmith.
Herald added subscribers: ributzka, jkorous.
Herald added a project: LLVM.
steven_wu edited reviewers, added: mattd; removed: davis-matthew.

For platform that uses macho format, c++filt should be stripping the
leading underscore by default. Introduce the binutil compatible "-n"
option to control strip-undercore behaivor together with the existing
"-_" option and fallback to system default if none of them are set.

rdar://problem/57173514


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70250

Files:
  llvm/test/tools/llvm-cxxfilt/abitag.test
  llvm/test/tools/llvm-cxxfilt/coff-import.test
  llvm/test/tools/llvm-cxxfilt/darwin.test
  llvm/test/tools/llvm-cxxfilt/delimiters.test
  llvm/test/tools/llvm-cxxfilt/empty-line.test
  llvm/test/tools/llvm-cxxfilt/invalid.test
  llvm/test/tools/llvm-cxxfilt/noargs.test
  llvm/test/tools/llvm-cxxfilt/simple.test
  llvm/test/tools/llvm-cxxfilt/types.test
  llvm/test/tools/llvm-cxxfilt/underscore.test
  llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70250.229332.patch
Type: text/x-patch
Size: 6502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191114/969d762f/attachment.bin>


More information about the llvm-commits mailing list