Rui Ueyama | 93c9af4 | 2016-06-29 08:01:32 +0000 | [diff] [blame] | 1 | //===- Strings.h ------------------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Linker |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLD_COFF_STRINGS_H |
| 11 | #define LLD_COFF_STRINGS_H |
| 12 | |
| 13 | #include "lld/Core/LLVM.h" |
| 14 | #include <vector> |
| 15 | |
| 16 | namespace lld { |
| 17 | namespace elf { |
| 18 | bool globMatch(StringRef S, StringRef T); |
| 19 | std::vector<uint8_t> parseHex(StringRef S); |
Rui Ueyama | fbbde54 | 2016-06-29 09:08:02 +0000 | [diff] [blame] | 20 | bool isValidCIdentifier(StringRef S); |
Rui Ueyama | f4d9338 | 2016-07-07 23:04:15 +0000 | [diff] [blame] | 21 | |
| 22 | // Returns a demangled C++ symbol name. If Name is not a mangled |
| 23 | // name or the system does not provide __cxa_demangle function, |
| 24 | // it returns an unmodified string. |
| 25 | std::string demangle(StringRef Name); |
Rui Ueyama | 93c9af4 | 2016-06-29 08:01:32 +0000 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | |
| 29 | #endif |