summaryrefslogtreecommitdiff
path: root/ELF/ScriptLexer.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 20:51:32 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 20:51:32 +0000
commitf1e1c239e31b467e17f1648b1f524fc9ab5b431a (patch)
treea855e7a2a8808555da60e6aa9601d6867eb23bac /ELF/ScriptLexer.h
parent7d6988fdd2aee0e033034e147f16fe05594a60e4 (diff)
Notes
Diffstat (limited to 'ELF/ScriptLexer.h')
-rw-r--r--ELF/ScriptLexer.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/ELF/ScriptLexer.h b/ELF/ScriptLexer.h
index fc6b5b1008a7..98e4cac95a73 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();