[serialization] Handle overloaded decls.

Swift SVN r6230
This commit is contained in:
Jordan Rose
2013-07-13 00:03:14 +00:00
parent f19de086ca
commit 1712ee6661
2 changed files with 8 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Bitcode/BitstreamReader.h"
namespace llvm {
@@ -155,8 +156,7 @@ private:
std::vector<SerializedIdentifier> Identifiers;
/// All top-level decls in this module.
// FIXME: A single identifier may refer to multiple decls.
llvm::DenseMap<Identifier, serialization::DeclID> TopLevelIDs;
llvm::DenseMap<Identifier, TinyPtrVector<ValueDecl *>> TopLevelDecls;
/// An array of the top-level decl IDs.
// FIXME: We don't really want to deserialize all of these at once.