mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Inline function into only use.
llvm-svn: 215925
This commit is contained in:
@@ -292,7 +292,6 @@ public:
|
||||
|
||||
const char *getCharacterData(bool *Invalid = nullptr) const;
|
||||
|
||||
const llvm::MemoryBuffer* getBuffer(bool *Invalid = nullptr) const;
|
||||
|
||||
/// \brief Return a StringRef to the source buffer data for the
|
||||
/// specified FileID.
|
||||
|
||||
@@ -132,13 +132,9 @@ const char *FullSourceLoc::getCharacterData(bool *Invalid) const {
|
||||
return SrcMgr->getCharacterData(*this, Invalid);
|
||||
}
|
||||
|
||||
const llvm::MemoryBuffer* FullSourceLoc::getBuffer(bool *Invalid) const {
|
||||
assert(isValid());
|
||||
return SrcMgr->getBuffer(SrcMgr->getFileID(*this), Invalid);
|
||||
}
|
||||
|
||||
StringRef FullSourceLoc::getBufferData(bool *Invalid) const {
|
||||
return getBuffer(Invalid)->getBuffer();
|
||||
assert(isValid());
|
||||
return SrcMgr->getBuffer(SrcMgr->getFileID(*this), Invalid)->getBuffer();;
|
||||
}
|
||||
|
||||
std::pair<FileID, unsigned> FullSourceLoc::getDecomposedLoc() const {
|
||||
|
||||
Reference in New Issue
Block a user