Make SourceManager::getFullFilePos() public.

llvm-svn: 49402
This commit is contained in:
Ted Kremenek 2008-04-08 21:26:35 +00:00
parent 506215c708
commit dbd1c183b0
1 changed files with 8 additions and 8 deletions

View File

@ -390,6 +390,14 @@ public:
return std::pair<unsigned,unsigned>(Loc.getFileID()-ChunkNo, Offset);
}
/// getFullFilePos - This (efficient) method returns the offset from the start
/// of the file that the specified physical SourceLocation represents. This
/// returns the location of the physical character data, not the logical file
/// position.
unsigned getFullFilePos(SourceLocation PhysLoc) const {
return getDecomposedFileLoc(PhysLoc).second;
}
/// PrintStats - Print statistics to stderr.
///
@ -435,14 +443,6 @@ private:
getContentCache(const SrcMgr::FileIDInfo* FIDInfo) const {
return FIDInfo->getContentCache();
}
/// getFullFilePos - This (efficient) method returns the offset from the start
/// of the file that the specified physical SourceLocation represents. This
/// returns the location of the physical character data, not the logical file
/// position.
unsigned getFullFilePos(SourceLocation PhysLoc) const {
return getDecomposedFileLoc(PhysLoc).second;
}
};