mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
Rename ScriptParser.{cpp,h} -> ScriptLexer.{cpp,h}.
These files contain a lexer, so the new names are better.
The parser is in LinkerScript.{cpp,h}.
llvm-svn: 295022
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "InputSection.h"
|
||||
#include "Memory.h"
|
||||
#include "OutputSections.h"
|
||||
#include "ScriptParser.h"
|
||||
#include "ScriptLexer.h"
|
||||
#include "Strings.h"
|
||||
#include "SymbolTable.h"
|
||||
#include "Symbols.h"
|
||||
@@ -1016,12 +1016,12 @@ size_t LinkerScript<ELFT>::getPhdrIndex(const Twine &Loc, StringRef PhdrName) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
class elf::ScriptParser final : public ScriptParserBase {
|
||||
class elf::ScriptParser final : public ScriptLexer {
|
||||
typedef void (ScriptParser::*Handler)();
|
||||
|
||||
public:
|
||||
ScriptParser(MemoryBufferRef MB)
|
||||
: ScriptParserBase(MB),
|
||||
: ScriptLexer(MB),
|
||||
IsUnderSysroot(isUnderSysroot(MB.getBufferIdentifier())) {}
|
||||
|
||||
void readLinkerScript();
|
||||
|
||||
Reference in New Issue
Block a user