forked from OSchip/llvm-project
SourceManager::getBufferData(SourceLocation) is dead, delete it.
llvm-svn: 62495
This commit is contained in:
parent
91fda39454
commit
7e343b2161
|
@ -334,9 +334,8 @@ public:
|
||||||
return getContentCache(FID)->getBuffer();
|
return getContentCache(FID)->getBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getBufferData - Return a pointer to the start and end of the character
|
/// getBufferData - Return a pointer to the start and end of the source buffer
|
||||||
/// data for the specified FileID.
|
/// data for the specified FileID.
|
||||||
std::pair<const char*, const char*> getBufferData(SourceLocation Loc) const;
|
|
||||||
std::pair<const char*, const char*> getBufferData(FileID FID) const;
|
std::pair<const char*, const char*> getBufferData(FileID FID) const;
|
||||||
|
|
||||||
/// getIncludeLoc - Return the location of the #include for the specified
|
/// getIncludeLoc - Return the location of the #include for the specified
|
||||||
|
|
|
@ -180,14 +180,8 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation SpellingLoc,
|
||||||
return SourceLocation::getMacroLoc(MacroIDs.size()-1, 0);
|
return SourceLocation::getMacroLoc(MacroIDs.size()-1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getBufferData - Return a pointer to the start and end of the character
|
/// getBufferData - Return a pointer to the start and end of the source buffer
|
||||||
/// data for the specified location.
|
/// data for the specified FileID.
|
||||||
std::pair<const char*, const char*>
|
|
||||||
SourceManager::getBufferData(SourceLocation Loc) const {
|
|
||||||
const llvm::MemoryBuffer *Buf = getBuffer(getCanonicalFileID(Loc));
|
|
||||||
return std::make_pair(Buf->getBufferStart(), Buf->getBufferEnd());
|
|
||||||
}
|
|
||||||
|
|
||||||
std::pair<const char*, const char*>
|
std::pair<const char*, const char*>
|
||||||
SourceManager::getBufferData(FileID FID) const {
|
SourceManager::getBufferData(FileID FID) const {
|
||||||
const llvm::MemoryBuffer *Buf = getBuffer(FID);
|
const llvm::MemoryBuffer *Buf = getBuffer(FID);
|
||||||
|
|
Loading…
Reference in New Issue