diff options
| author | John McCall <rjmccall@apple.com> | 2010-06-01 09:23:16 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-06-01 09:23:16 +0000 |
| commit | 75b960e5eed19935820b32c192d5de65a8ffda76 (patch) | |
| tree | 99bd8c4b8697d5eb19e26abdc5b5d8f63ba8ffed /clang/lib/Sema/Sema.cpp | |
| parent | ce83656f97819b440313622c06df4ad3449edc39 (diff) | |
| download | bcm5719-llvm-75b960e5eed19935820b32c192d5de65a8ffda76.tar.gz bcm5719-llvm-75b960e5eed19935820b32c192d5de65a8ffda76.zip | |
Alter the ExternalASTSource interface to permit by-name lookups. PCH continues to
bring in the entire lookup table at once.
Also, give ExternalSemaSource's vtable a home. This is important because otherwise
any reference to it will cause RTTI to be emitted, and since clang is compiled
with -fno-rtti, that RTTI will contain unresolved references (to ExternalASTSource's
RTTI). So this change makes it possible to subclass ExternalSemaSource from projects
compiled with RTTI, as long as the subclass's home is compiled with -fno-rtti.
llvm-svn: 105268
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
| -rw-r--r-- | clang/lib/Sema/Sema.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 9cc50485729..8bdf971d965 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -17,6 +17,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/APFloat.h" +#include "clang/Sema/ExternalSemaSource.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/AST/ASTDiagnostic.h" @@ -427,3 +428,6 @@ BlockScopeInfo *Sema::getCurBlock() { return dyn_cast<BlockScopeInfo>(FunctionScopes.back()); } + +// Pin this vtable to this file. +ExternalSemaSource::~ExternalSemaSource() {} |

