summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-16 20:53:17 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-16 20:53:17 +0000
commita71b9d067884a97962027815c0a0bc4976d1256e (patch)
tree53bf4c4c3958af0596945b35a57c6d72c4ba8fcb /clang/lib/Basic/SourceLocation.cpp
parent8801b810bbdedb288976c7d850c6f13b75e48067 (diff)
downloadbcm5719-llvm-a71b9d067884a97962027815c0a0bc4976d1256e.tar.gz
bcm5719-llvm-a71b9d067884a97962027815c0a0bc4976d1256e.zip
Update get*LineNumber() and get*ColumnNumber() functions to pass the
Invalid bit through; there are no safety-critical callers of these functions. llvm-svn: 98674
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r--clang/lib/Basic/SourceLocation.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp
index 5ccd73171e2..7412b955606 100644
--- a/clang/lib/Basic/SourceLocation.cpp
+++ b/clang/lib/Basic/SourceLocation.cpp
@@ -80,24 +80,24 @@ FullSourceLoc FullSourceLoc::getSpellingLoc() const {
return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr);
}
-unsigned FullSourceLoc::getInstantiationLineNumber() const {
+unsigned FullSourceLoc::getInstantiationLineNumber(bool *Invalid) const {
assert(isValid());
- return SrcMgr->getInstantiationLineNumber(*this);
+ return SrcMgr->getInstantiationLineNumber(*this, Invalid);
}
-unsigned FullSourceLoc::getInstantiationColumnNumber() const {
+unsigned FullSourceLoc::getInstantiationColumnNumber(bool *Invalid) const {
assert(isValid());
- return SrcMgr->getInstantiationColumnNumber(*this);
+ return SrcMgr->getInstantiationColumnNumber(*this, Invalid);
}
-unsigned FullSourceLoc::getSpellingLineNumber() const {
+unsigned FullSourceLoc::getSpellingLineNumber(bool *Invalid) const {
assert(isValid());
- return SrcMgr->getSpellingLineNumber(*this);
+ return SrcMgr->getSpellingLineNumber(*this, Invalid);
}
-unsigned FullSourceLoc::getSpellingColumnNumber() const {
+unsigned FullSourceLoc::getSpellingColumnNumber(bool *Invalid) const {
assert(isValid());
- return SrcMgr->getSpellingColumnNumber(*this);
+ return SrcMgr->getSpellingColumnNumber(*this, Invalid);
}
bool FullSourceLoc::isInSystemHeader() const {
OpenPOWER on IntegriCloud