diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:46:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-19 07:46:45 +0000 |
commit | cbc35ecb045a163a064d2a592515a381d01d27d2 (patch) | |
tree | 4c30786b95d5f37ef21b1a349cadface1f46315e /clang/lib/Rewrite | |
parent | 8c3b81214833353aac2c89e35db3be1690595cf1 (diff) | |
download | bcm5719-llvm-cbc35ecb045a163a064d2a592515a381d01d27d2.tar.gz bcm5719-llvm-cbc35ecb045a163a064d2a592515a381d01d27d2.zip |
Rename SourceManager::getCanonicalFileID -> getFileID. There is
no longer such thing as a non-canonical FileID.
llvm-svn: 62499
Diffstat (limited to 'clang/lib/Rewrite')
-rw-r--r-- | clang/lib/Rewrite/HTMLRewrite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Rewrite/HTMLRewrite.cpp b/clang/lib/Rewrite/HTMLRewrite.cpp index 68a53d364b9..040146620d2 100644 --- a/clang/lib/Rewrite/HTMLRewrite.cpp +++ b/clang/lib/Rewrite/HTMLRewrite.cpp @@ -33,8 +33,8 @@ void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, SourceManager &SM = R.getSourceMgr(); B = SM.getInstantiationLoc(B); E = SM.getInstantiationLoc(E); - FileID FID = SM.getCanonicalFileID(B); - assert(SM.getCanonicalFileID(E) == FID && "B/E not in the same file!"); + FileID FID = SM.getFileID(B); + assert(SM.getFileID(E) == FID && "B/E not in the same file!"); unsigned BOffset = SM.getFullFilePos(B); unsigned EOffset = SM.getFullFilePos(E); |