From 4f947ff10bf2ceebe77d2f43a340bdf4d3707237 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 25 Apr 2012 18:21:21 +0000 Subject: [PATCH] Convert a std::map that usually has between 0 and 10 elements to SmallMap. llvm-svn: 155570 --- clang/include/clang/AST/CXXInheritance.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/AST/CXXInheritance.h b/clang/include/clang/AST/CXXInheritance.h index 44c554b606c4..814e2761da12 100644 --- a/clang/include/clang/AST/CXXInheritance.h +++ b/clang/include/clang/AST/CXXInheritance.h @@ -19,7 +19,7 @@ #include "clang/AST/DeclCXX.h" #include "clang/AST/Type.h" #include "clang/AST/TypeOrdering.h" -#include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallMap.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" #include @@ -128,8 +128,7 @@ class CXXBasePaths { /// while the element contains the number of non-virtual base /// class subobjects for that class type. The key of the map is /// the cv-unqualified canonical type of the base class subobject. - std::map, QualTypeOrdering> - ClassSubobjects; + llvm::SmallMap, 8> ClassSubobjects; /// FindAmbiguities - Whether Sema::IsDerivedFrom should try find /// ambiguous paths while it is looking for a path from a derived