diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 20:05:18 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 20:05:18 +0000 |
commit | 3cffc4c76a38edda4c2adcf7c3e005b59b3c0397 (patch) | |
tree | 95c2e797bcaf345ec5e514d6efaebb5b85e6d37d /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | 724e9e52a43ec1e63d199c0f87f94acb68b198dd (diff) | |
download | bcm5719-llvm-3cffc4c76a38edda4c2adcf7c3e005b59b3c0397.tar.gz bcm5719-llvm-3cffc4c76a38edda4c2adcf7c3e005b59b3c0397.zip |
Add getBeginLoc API to replace getStartLoc
Reviewers: teemperor!
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D50347
llvm-svn: 339373
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 2d844646359..389d29e467b 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -67,7 +67,8 @@ public: void setStartLoc(SourceLocation Loc) { LocStart = Loc; } - SourceLocation getStartLoc() const { + SourceLocation getStartLoc() const LLVM_READONLY { return getBeginLoc(); } + SourceLocation getBeginLoc() const { assert(LocStart && "Region has no start location"); return *LocStart; } |