diff options
| author | Axel Naumann <Axel.Naumann@cern.ch> | 2017-06-26 15:06:40 +0000 |
|---|---|---|
| committer | Axel Naumann <Axel.Naumann@cern.ch> | 2017-06-26 15:06:40 +0000 |
| commit | 19520027daa33b4dafde82bcc3530f1aa635eaf1 (patch) | |
| tree | 93d2cc1f0cf7ff2a271fac7b37e5343b97edf413 | |
| parent | 65d7f72f2c1f58a14dc23033895c1bc65458f400 (diff) | |
| download | bcm5719-llvm-19520027daa33b4dafde82bcc3530f1aa635eaf1.tar.gz bcm5719-llvm-19520027daa33b4dafde82bcc3530f1aa635eaf1.zip | |
Improve const-correctness.
llvm-svn: 306291
| -rw-r--r-- | clang/include/clang/Parse/Parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h index a51d3a51d43..2373f1048fe 100644 --- a/clang/include/clang/Parse/Parser.h +++ b/clang/include/clang/Parse/Parser.h @@ -604,7 +604,7 @@ public: } /// getTypeAnnotation - Read a parsed type out of an annotation token. - static ParsedType getTypeAnnotation(Token &Tok) { + static ParsedType getTypeAnnotation(const Token &Tok) { return ParsedType::getFromOpaquePtr(Tok.getAnnotationValue()); } @@ -615,7 +615,7 @@ private: /// \brief Read an already-translated primary expression out of an annotation /// token. - static ExprResult getExprAnnotation(Token &Tok) { + static ExprResult getExprAnnotation(const Token &Tok) { return ExprResult::getFromOpaquePointer(Tok.getAnnotationValue()); } |

