diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-03-13 04:12:34 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-03-13 04:12:34 +0000 |
commit | 2bd636f589302ec937c732d3761325ecc2f88dd2 (patch) | |
tree | 248432a13dd707f00814cb4f8e99e4aada3ee658 /clang/lib/Serialization/ASTWriter.cpp | |
parent | 05afe5e0841e08889d8fc7b2fe9d0ced91578cc7 (diff) | |
download | bcm5719-llvm-2bd636f589302ec937c732d3761325ecc2f88dd2.tar.gz bcm5719-llvm-2bd636f589302ec937c732d3761325ecc2f88dd2.zip |
It never makes sense to do a lookup into a LinkageSpecDecl, so assert that we
don't, and clean up the places that do it.
The change to ASTWriter is surprising, but the deleted code is a no-op as of
r152608.
llvm-svn: 152609
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index cb320684426..a6cccbf4b54 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -2792,10 +2792,6 @@ uint64_t ASTWriter::WriteDeclContextVisibleBlock(ASTContext &Context, if (DC->isTranslationUnit() && !Context.getLangOpts().CPlusPlus) return 0; - // Force the DeclContext to build a its name-lookup table. - if (!DC->hasExternalVisibleStorage()) - DC->lookup(DeclarationName()); - // Serialize the contents of the mapping used for lookup. Note that, // although we have two very different code paths, the serialized // representation is the same for both cases: a declaration name, |