[clang] 61b9670 - [clang] Const correct ComputePreambleBounds
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 03:13:25 PDT 2020
Author: Kadir Cetinkaya
Date: 2020-04-16T12:10:40+02:00
New Revision: 61b96704564b121210a3b83107f7867c9f2d89b3
URL: https://github.com/llvm/llvm-project/commit/61b96704564b121210a3b83107f7867c9f2d89b3
DIFF: https://github.com/llvm/llvm-project/commit/61b96704564b121210a3b83107f7867c9f2d89b3.diff
LOG: [clang] Const correct ComputePreambleBounds
Added:
Modified:
clang/include/clang/Frontend/PrecompiledPreamble.h
clang/lib/Frontend/PrecompiledPreamble.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Frontend/PrecompiledPreamble.h b/clang/include/clang/Frontend/PrecompiledPreamble.h
index 5ae77735576c..0d95ee683eee 100644
--- a/clang/include/clang/Frontend/PrecompiledPreamble.h
+++ b/clang/include/clang/Frontend/PrecompiledPreamble.h
@@ -38,7 +38,7 @@ class PCHContainerOperations;
/// Runs lexer to compute suggested preamble bounds.
PreambleBounds ComputePreambleBounds(const LangOptions &LangOpts,
- llvm::MemoryBuffer *Buffer,
+ const llvm::MemoryBuffer *Buffer,
unsigned MaxLines);
class PreambleCallbacks;
diff --git a/clang/lib/Frontend/PrecompiledPreamble.cpp b/clang/lib/Frontend/PrecompiledPreamble.cpp
index 3657ccf8ecea..442ad63cee0e 100644
--- a/clang/lib/Frontend/PrecompiledPreamble.cpp
+++ b/clang/lib/Frontend/PrecompiledPreamble.cpp
@@ -228,7 +228,7 @@ template <class T> bool moveOnNoError(llvm::ErrorOr<T> Val, T &Output) {
} // namespace
PreambleBounds clang::ComputePreambleBounds(const LangOptions &LangOpts,
- llvm::MemoryBuffer *Buffer,
+ const llvm::MemoryBuffer *Buffer,
unsigned MaxLines) {
return Lexer::ComputePreamble(Buffer->getBuffer(), LangOpts, MaxLines);
}
More information about the cfe-commits
mailing list