From 8ad528a3bf754b1b73767be63ee6bf29f6d36479 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 21 Jan 2017 02:36:26 +0000 Subject: [PATCH] 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 --- tools/llvm-cxxfilt/llvm-cxxfilt.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/llvm-cxxfilt/llvm-cxxfilt.cpp b/tools/llvm-cxxfilt/llvm-cxxfilt.cpp index 6076a6313b3..8f90bcfc897 100644 --- a/tools/llvm-cxxfilt/llvm-cxxfilt.cpp +++ b/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