2016-06-29 16:01:32 +08:00
|
|
|
//===- Strings.h ------------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-09-16 06:26:07 +08:00
|
|
|
#ifndef LLD_ELF_STRINGS_H
|
|
|
|
#define LLD_ELF_STRINGS_H
|
2016-06-29 16:01:32 +08:00
|
|
|
|
|
|
|
#include "lld/Core/LLVM.h"
|
2016-09-03 05:17:20 +08:00
|
|
|
#include "llvm/Support/Regex.h"
|
2016-06-29 16:01:32 +08:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace elf {
|
2016-09-03 05:17:20 +08:00
|
|
|
llvm::Regex compileGlobPatterns(ArrayRef<StringRef> V);
|
2016-09-16 03:15:12 +08:00
|
|
|
int getPriority(StringRef S);
|
2016-09-03 05:17:20 +08:00
|
|
|
bool hasWildcard(StringRef S);
|
2016-06-29 16:01:32 +08:00
|
|
|
std::vector<uint8_t> parseHex(StringRef S);
|
2016-06-29 17:08:02 +08:00
|
|
|
bool isValidCIdentifier(StringRef S);
|
2016-09-09 22:35:36 +08:00
|
|
|
StringRef unquote(StringRef S);
|
2016-07-08 07:04:15 +08:00
|
|
|
|
|
|
|
// 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);
|
2016-06-29 16:01:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|