diff options
author | Rui Ueyama <ruiu@google.com> | 2017-11-28 02:15:26 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-11-28 02:15:26 +0000 |
commit | 53fe469162ea0ed8fd24377dd44de9f560307312 (patch) | |
tree | c48a6b5fca8b71523c6f02fb27ec5cdb1d6f4cfa /lld/include/lld | |
parent | 3ecd20430cace7eb9e78ef0a9ff9cc95a377feb9 (diff) | |
download | bcm5719-llvm-53fe469162ea0ed8fd24377dd44de9f560307312.tar.gz bcm5719-llvm-53fe469162ea0ed8fd24377dd44de9f560307312.zip |
Factor out common code to Common/Strings.cpp.
Differential Revision: https://reviews.llvm.org/D40530
llvm-svn: 319138
Diffstat (limited to 'lld/include/lld')
-rw-r--r-- | lld/include/lld/Common/Strings.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lld/include/lld/Common/Strings.h b/lld/include/lld/Common/Strings.h new file mode 100644 index 00000000000..1a63f75f9ec --- /dev/null +++ b/lld/include/lld/Common/Strings.h @@ -0,0 +1,23 @@ +//===- Strings.h ------------------------------------------------*- C++ -*-===// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLD_STRINGS_H +#define LLD_STRINGS_H + +#include "llvm/ADT/Optional.h" +#include "llvm/ADT/StringRef.h" +#include <string> + +namespace lld { +// Returns a demangled C++ symbol name. If Name is not a mangled +// name, it returns Optional::None. +llvm::Optional<std::string> demangleItanium(llvm::StringRef Name); +} + +#endif |