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" |
George Rimar | c91930a | 2016-09-02 21:17:20 +0000 | [diff] [blame] | 14 | #include "llvm/Support/Regex.h" |
Rui Ueyama | 93c9af4 | 2016-06-29 08:01:32 +0000 | [diff] [blame] | 15 | #include <vector> |
| 16 | |
| 17 | namespace lld { |
| 18 | namespace elf { |
George Rimar | c91930a | 2016-09-02 21:17:20 +0000 | [diff] [blame] | 19 | llvm::Regex compileGlobPatterns(ArrayRef<StringRef> V); |
| 20 | bool hasWildcard(StringRef S); |
Rui Ueyama | 93c9af4 | 2016-06-29 08:01:32 +0000 | [diff] [blame] | 21 | std::vector<uint8_t> parseHex(StringRef S); |
Rui Ueyama | fbbde54 | 2016-06-29 09:08:02 +0000 | [diff] [blame] | 22 | bool isValidCIdentifier(StringRef S); |
George Rimar | cd574a5 | 2016-09-09 14:35:36 +0000 | [diff] [blame] | 23 | StringRef unquote(StringRef S); |
Rui Ueyama | f4d9338 | 2016-07-07 23:04:15 +0000 | [diff] [blame] | 24 | |
| 25 | // Returns a demangled C++ symbol name. If Name is not a mangled |
| 26 | // name or the system does not provide __cxa_demangle function, |
| 27 | // it returns an unmodified string. |
| 28 | std::string demangle(StringRef Name); |
Rui Ueyama | 93c9af4 | 2016-06-29 08:01:32 +0000 | [diff] [blame] | 29 | } |
| 30 | } |
| 31 | |
| 32 | #endif |