Added "isFileID()" to FullSourceLoc.

llvm-svn: 49148
This commit is contained in:
Ted Kremenek 2008-04-03 07:11:38 +00:00
parent d4bee176b6
commit 78e30c17bc
1 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,8 @@ public:
const char* getSourceName() const; const char* getSourceName() const;
const FileEntry* getFileEntryForLoc() const; const FileEntry* getFileEntryForLoc() const;
bool isFileID() const { return Loc.isFileID(); }
bool operator==(const FullSourceLoc& RHS) const { bool operator==(const FullSourceLoc& RHS) const {
return SrcMgr == RHS.SrcMgr && Loc == RHS.Loc; return SrcMgr == RHS.SrcMgr && Loc == RHS.Loc;
} }