From f1e1c239e31b467e17f1648b1f524fc9ab5b431a Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 20 Aug 2019 20:51:32 +0000 Subject: Vendor import of stripped lld trunk r366426 (just before the release_90 branch point): https://llvm.org/svn/llvm-project/lld/trunk@366426 --- ELF/ScriptLexer.h | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'ELF/ScriptLexer.h') 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 MBs; - std::vector Tokens; - bool InExpr = false; - size_t Pos = 0; + std::vector mbs; + std::vector tokens; + bool inExpr = false; + size_t pos = 0; private: void maybeSplitExpr(); -- cgit v1.2.3