From 1c98619801a5705c688e683be3ef9d70169a0686 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:48:50 +0000 Subject: Vendor import of lld release_39 branch r276489: https://llvm.org/svn/llvm-project/lld/branches/release_39@276489 --- ELF/Strings.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ELF/Strings.h (limited to 'ELF/Strings.h') 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 + +namespace lld { +namespace elf { +bool globMatch(StringRef S, StringRef T); +std::vector 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 -- cgit v1.3