diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 20:52:32 +0000 | 
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 20:52:32 +0000 | 
| commit | c7ca5218b691296031f6a3b6c41086745b231735 (patch) | |
| tree | 8843ea8e81a9dd5aabda67a5ac0781cebb6a57a4 /clang/lib/Basic | |
| parent | c84d769c686fd09651bcdcf2f34b342312db78d5 (diff) | |
| download | bcm5719-llvm-c7ca5218b691296031f6a3b6c41086745b231735.tar.gz bcm5719-llvm-c7ca5218b691296031f6a3b6c41086745b231735.zip  | |
Rename getDecomposedInstantiationLoc to getDecomposedExpansionLoc.
llvm-svn: 135962
Diffstat (limited to 'clang/lib/Basic')
| -rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 63f23649252..ec97defbb62 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -289,7 +289,7 @@ unsigned SourceManager::getLineTableFilenameID(StringRef Name) {  /// unspecified.  void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo,                                  int FilenameID) { -  std::pair<FileID, unsigned> LocInfo = getDecomposedInstantiationLoc(Loc); +  std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);    bool Invalid = false;    const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); @@ -319,7 +319,7 @@ void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo,      return AddLineNote(Loc, LineNo, FilenameID);    } -  std::pair<FileID, unsigned> LocInfo = getDecomposedInstantiationLoc(Loc); +  std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);    bool Invalid = false;    const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); @@ -809,7 +809,7 @@ SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const {  std::pair<FileID, unsigned> -SourceManager::getDecomposedInstantiationLocSlowCase( +SourceManager::getDecomposedExpansionLocSlowCase(                                               const SrcMgr::SLocEntry *E) const {    // If this is an instantiation record, walk through all the instantiation    // points. @@ -961,7 +961,7 @@ unsigned SourceManager::getSpellingColumnNumber(SourceLocation Loc,  unsigned SourceManager::getInstantiationColumnNumber(SourceLocation Loc,                                                       bool *Invalid) const {    if (isInvalid(Loc, Invalid)) return 0; -  std::pair<FileID, unsigned> LocInfo = getDecomposedInstantiationLoc(Loc); +  std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);    return getColumnNumber(LocInfo.first, LocInfo.second, Invalid);  } @@ -1156,7 +1156,7 @@ unsigned SourceManager::getSpellingLineNumber(SourceLocation Loc,  unsigned SourceManager::getInstantiationLineNumber(SourceLocation Loc,                                                      bool *Invalid) const {    if (isInvalid(Loc, Invalid)) return 0; -  std::pair<FileID, unsigned> LocInfo = getDecomposedInstantiationLoc(Loc); +  std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);    return getLineNumber(LocInfo.first, LocInfo.second);  }  unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc, @@ -1176,7 +1176,7 @@ unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc,  SrcMgr::CharacteristicKind  SourceManager::getFileCharacteristic(SourceLocation Loc) const {    assert(!Loc.isInvalid() && "Can't get file characteristic of invalid loc!"); -  std::pair<FileID, unsigned> LocInfo = getDecomposedInstantiationLoc(Loc); +  std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);    bool Invalid = false;    const SLocEntry &SEntry = getSLocEntry(LocInfo.first, &Invalid);    if (Invalid || !SEntry.isFile()) @@ -1223,7 +1223,7 @@ PresumedLoc SourceManager::getPresumedLoc(SourceLocation Loc) const {    if (Loc.isInvalid()) return PresumedLoc();    // Presumed locations are always for instantiation points. -  std::pair<FileID, unsigned> LocInfo = getDecomposedInstantiationLoc(Loc); +  std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);    bool Invalid = false;    const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid);  | 

