From: Saleem Abdulrasool Date: Sat, 21 Jan 2017 02:36:26 +0000 (+0000) Subject: llvm-cxxfilt: support the `-s` option X-Git-Tag: llvmorg-5.0.0-rc1~14794 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c33f7f2e302d1b54bac9ac05fc9bacb6743d26e;p=platform%2Fupstream%2Fllvm.git llvm-cxxfilt: support the `-s` option This is a stub implementation of the `-s` or `--format` option that allows the user to specify the demangling style. Since we only support the Itanium (GNU) style demangling, auto is synonymous with `gnu`. Simply swallow the option to permit some level of commandline compatibility. llvm-svn: 292706 --- diff --git a/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp b/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp index 6076a63..8f90bcf 100644 --- a/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp +++ b/llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp @@ -17,6 +17,25 @@ using namespace llvm; +enum Style { + Auto, ///< auto-detect mangling + GNU, ///< GNU + Lucid, ///< Lucid compiler (lcc) + ARM, + HP, ///< HP compiler (xCC) + EDG, ///< EDG compiler + GNUv3, ///< GNU C++ v3 ABI + Java, ///< Java (gcj) + GNAT ///< ADA copiler (gnat) +}; +static cl::opt