diff options
Diffstat (limited to 'ELF/ScriptLexer.h')
-rw-r--r-- | ELF/ScriptLexer.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/ELF/ScriptLexer.h b/ELF/ScriptLexer.h index fc6b5b1008a72..98e4cac95a73e 100644 --- a/ELF/ScriptLexer.h +++ b/ELF/ScriptLexer.h @@ -1,9 +1,8 @@ //===- ScriptLexer.h --------------------------------------------*- C++ -*-===// // -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -21,25 +20,25 @@ namespace elf { class ScriptLexer { public: - explicit ScriptLexer(MemoryBufferRef MB); + explicit ScriptLexer(MemoryBufferRef mb); - void setError(const Twine &Msg); - void tokenize(MemoryBufferRef MB); - static StringRef skipSpace(StringRef S); + void setError(const Twine &msg); + void tokenize(MemoryBufferRef mb); + static StringRef skipSpace(StringRef s); bool atEOF(); StringRef next(); StringRef peek(); StringRef peek2(); void skip(); - bool consume(StringRef Tok); - void expect(StringRef Expect); - bool consumeLabel(StringRef Tok); + bool consume(StringRef tok); + void expect(StringRef expect); + bool consumeLabel(StringRef tok); std::string getCurrentLocation(); - std::vector<MemoryBufferRef> MBs; - std::vector<StringRef> Tokens; - bool InExpr = false; - size_t Pos = 0; + std::vector<MemoryBufferRef> mbs; + std::vector<StringRef> tokens; + bool inExpr = false; + size_t pos = 0; private: void maybeSplitExpr(); |