aboutsummaryrefslogtreecommitdiff
path: root/lib/Serialization
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-04 18:17:30 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-04 18:17:30 +0000
commit12dcc64eebf7aaffb71392fba74fcb69f35d3b2e (patch)
tree14b4e0e12a7d66df7373255cb11db634d4a56ca0 /lib/Serialization
parent84d43848e39eab9e3386cbfb3906ba2d6a382f24 (diff)
[PCH] Use DenseMap instead of std::map to keep track of SwitchCases.
Part of rdar://11353109. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization')
-rw-r--r--lib/Serialization/ASTReaderDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp
index dc315f095c..1c5b658469 100644
--- a/lib/Serialization/ASTReaderDecl.cpp
+++ b/lib/Serialization/ASTReaderDecl.cpp
@@ -631,8 +631,8 @@ void ASTDeclReader::VisitObjCMethodDecl(ObjCMethodDecl *MD) {
// In practice, this won't be executed (since method definitions
// don't occur in header files).
// Switch case IDs for this method body.
- std::map<unsigned, SwitchCase *> SwitchCaseStmtsForObjCMethod;
- SaveAndRestore<std::map<unsigned, SwitchCase *> *>
+ ASTReader::SwitchCaseMapTy SwitchCaseStmtsForObjCMethod;
+ SaveAndRestore<ASTReader::SwitchCaseMapTy *>
SCFOM(Reader.CurrSwitchCaseStmts, &SwitchCaseStmtsForObjCMethod);
MD->setBody(Reader.ReadStmt(F));
MD->setSelfDecl(ReadDeclAs<ImplicitParamDecl>(Record, Idx));