c2c/Clang/SourceManager.cpp
/// Returns the kind of memory used to back the memory buffer for
/// this content cache.  This is used for performance analysis.
Returns the kind of memory used to back the memory buffer for
this content cache.  This is used for performance analysis.
Returns the kind of memory used to back the memory buffer for this content cache . This is used for performance analysis .
llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const {
  assert(Buffer.getPointer());
  if (!Buffer.getPointer())
    return llvm::MemoryBuffer::MemoryBuffer_Malloc;
  llvm::MemoryBuffer *buf = Buffer.getPointer();
  return buf->getBufferKind();
}
llvm :: MemoryBuffer :: BufferKind ContentCache :: getMemoryBufferKind ( ) const { assert ( Buffer . getPointer ( ) ) ; if ( ! Buffer . getPointer ( ) ) return llvm :: MemoryBuffer :: MemoryBuffer_Malloc ; llvm :: MemoryBuffer * buf = Buffer . getPointer ( ) ; return buf -> getBufferKind ( ) ; }
Returns the kind of memory used to back the memory buffer for
this content cache.
Returns the kind of memory used to back the memory buffer for this content cache .
// Should be unreachable, but keep for sanity.