mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 23:45:25 +08:00
Do not make ScriptParser class public.
This class is used only within this file, so it can be file-local. llvm-svn: 299516
This commit is contained in:
@@ -36,7 +36,8 @@ using namespace lld::elf;
|
||||
|
||||
static bool isUnderSysroot(StringRef Path);
|
||||
|
||||
class elf::ScriptParser final : ScriptLexer {
|
||||
namespace {
|
||||
class ScriptParser final : ScriptLexer {
|
||||
public:
|
||||
ScriptParser(MemoryBufferRef MB)
|
||||
: ScriptLexer(MB),
|
||||
@@ -101,6 +102,7 @@ private:
|
||||
|
||||
bool IsUnderSysroot;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
static bool isUnderSysroot(StringRef Path) {
|
||||
if (Config->Sysroot == "")
|
||||
|
||||
Reference in New Issue
Block a user