1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

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
This commit is contained in:
Saleem Abdulrasool 2017-01-21 02:36:26 +00:00
parent 0243836cdd
commit 8ad528a3bf

View File

@ -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<Style>
Format("format", cl::desc("decoration style"),
cl::values(clEnumValN(Auto, "auto", "auto-detect style"),
clEnumValN(GNU, "gnu", "GNU (itanium) style")),
cl::init(Auto));
static cl::alias FormatShort("s", cl::desc("alias for --format"),
cl::aliasopt(Format));
static cl::opt<bool>
Types("types",
cl::desc("attempt to demangle types as well as function names"),