diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
| commit | 1c98619801a5705c688e683be3ef9d70169a0686 (patch) | |
| tree | 8422105cd1a94c368315f2db16b9ac746cf7c000 /ELF/Strings.h | |
| parent | f4f3ce4613680903220815690ad79fc7ba0a2e26 (diff) | |
Notes
Diffstat (limited to 'ELF/Strings.h')
| -rw-r--r-- | ELF/Strings.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ELF/Strings.h b/ELF/Strings.h new file mode 100644 index 000000000000..4948e9dbd56b --- /dev/null +++ b/ELF/Strings.h @@ -0,0 +1,29 @@ +//===- 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_COFF_STRINGS_H +#define LLD_COFF_STRINGS_H + +#include "lld/Core/LLVM.h" +#include <vector> + +namespace lld { +namespace elf { +bool globMatch(StringRef S, StringRef T); +std::vector<uint8_t> parseHex(StringRef S); +bool isValidCIdentifier(StringRef S); + +// Returns a demangled C++ symbol name. If Name is not a mangled +// name or the system does not provide __cxa_demangle function, +// it returns an unmodified string. +std::string demangle(StringRef Name); +} +} + +#endif |
