forked from OSchip/llvm-project
parent
e993b80ef5
commit
c5c27f7bfe
|
@ -100,6 +100,7 @@ int Rewriter::getRangeSize(SourceRange Range) const {
|
|||
|
||||
unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc,
|
||||
unsigned &FileID) const {
|
||||
assert(Loc.isValid() && "Invalid location");
|
||||
std::pair<unsigned,unsigned> V = SourceMgr->getDecomposedFileLoc(Loc);
|
||||
FileID = V.first;
|
||||
return V.second;
|
||||
|
|
Loading…
Reference in New Issue