diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 16:56:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 16:56:02 +0000 |
commit | 6d28d7f2a3079745a79fb95210e641ca844a902a (patch) | |
tree | ce2038de035c6cf1a2987dd4c25186533303ebe0 /clang/lib/Basic/SourceManager.cpp | |
parent | 35f5320d8e3bd080bd6316ef13716adf011d89e9 (diff) | |
download | bcm5719-llvm-6d28d7f2a3079745a79fb95210e641ca844a902a.tar.gz bcm5719-llvm-6d28d7f2a3079745a79fb95210e641ca844a902a.zip |
Rename SourceManager::getInstantiationRange to getExpansionRange.
llvm-svn: 135915
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index cbac7ffa31d..aad23ad6db3 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -866,10 +866,10 @@ SourceManager::getImmediateInstantiationRange(SourceLocation Loc) const { return II.getInstantiationLocRange(); } -/// getInstantiationRange - Given a SourceLocation object, return the -/// range of tokens covered by the instantiation in the ultimate file. +/// getExpansionRange - Given a SourceLocation object, return the range of +/// tokens covered by the expansion in the ultimate file. std::pair<SourceLocation,SourceLocation> -SourceManager::getInstantiationRange(SourceLocation Loc) const { +SourceManager::getExpansionRange(SourceLocation Loc) const { if (Loc.isFileID()) return std::make_pair(Loc, Loc); std::pair<SourceLocation,SourceLocation> Res = |