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:
Rui Ueyama
2017-04-05 05:08:01 +00:00
parent 2ec34544aa
commit 96b3fe025a
2 changed files with 3 additions and 2 deletions

View File

@@ -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 == "")