[cfe-commits] r130838 - in /cfe/trunk: include/clang/AST/ExternalASTSource.h lib/AST/ExternalASTSource.cpp
Axel Naumann
Axel.Naumann at cern.ch
Wed May 4 05:59:24 PDT 2011
Author: axel
Date: Wed May 4 07:59:24 2011
New Revision: 130838
URL: http://llvm.org/viewvc/llvm-project?rev=130838&view=rev
Log:
>From Vassil Vassilev:
Like in r126648, provide (empty) default implementation for pure virtual getMemoryBufferSizes(). Not all use cases have meaningful implementations.
Modified:
cfe/trunk/include/clang/AST/ExternalASTSource.h
cfe/trunk/lib/AST/ExternalASTSource.cpp
Modified: cfe/trunk/include/clang/AST/ExternalASTSource.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExternalASTSource.h?rev=130838&r1=130837&r2=130838&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExternalASTSource.h (original)
+++ cfe/trunk/include/clang/AST/ExternalASTSource.h Wed May 4 07:59:24 2011
@@ -211,7 +211,7 @@
return sizes;
}
- virtual void getMemoryBufferSizes(MemoryBufferSizes &sizes) const = 0;
+ virtual void getMemoryBufferSizes(MemoryBufferSizes &sizes) const;
protected:
static DeclContextLookupResult
Modified: cfe/trunk/lib/AST/ExternalASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExternalASTSource.cpp?rev=130838&r1=130837&r2=130838&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExternalASTSource.cpp (original)
+++ cfe/trunk/lib/AST/ExternalASTSource.cpp Wed May 4 07:59:24 2011
@@ -57,3 +57,5 @@
llvm::SmallVectorImpl<Decl*> &Result) {
return true;
}
+
+void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }
More information about the cfe-commits
mailing list