diff options
author | Dawid Jurczak <dawid_jurek@vp.pl> | 2022-03-01 17:24:13 +0100 |
---|---|---|
committer | Dawid Jurczak <dawid_jurek@vp.pl> | 2022-03-02 11:17:05 +0100 |
commit | d813116c9deaa960ddcce5b4b161ea589d6e9a34 (patch) | |
tree | c3efbbc9609c36a32a2acb059347adebc48acaf5 /clang/lib/Lex/ModuleMap.cpp | |
parent | 83fd2071f0d4033f75234b13398b1de1f6b4c4f3 (diff) | |
download | llvm-d813116c9deaa960ddcce5b4b161ea589d6e9a34.zip llvm-d813116c9deaa960ddcce5b4b161ea589d6e9a34.tar.gz llvm-d813116c9deaa960ddcce5b4b161ea589d6e9a34.tar.bz2 |
[NFC][Lexer] Remove getLangOpts function from Lexer
Given that there is only one external user of Lexer::getLangOpts
we can remove getter entirely without much pain.
Differential Revision: https://reviews.llvm.org/D120404
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 824b2bb..a5eca40 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -1625,7 +1625,7 @@ retry: SpellingBuffer.resize(LToken.getLength() + 1); const char *Start = SpellingBuffer.data(); unsigned Length = - Lexer::getSpelling(LToken, Start, SourceMgr, L.getLangOpts()); + Lexer::getSpelling(LToken, Start, SourceMgr, Map.LangOpts); uint64_t Value; if (StringRef(Start, Length).getAsInteger(0, Value)) { Diags.Report(Tok.getLocation(), diag::err_mmap_unknown_token); |