Use StringMap in MicrosoftMangle to resolve FIXME.

llvm-svn: 182488
This commit is contained in:
Reid Kleckner 2013-05-22 17:16:39 +00:00
parent 1fc96a323e
commit 7dafb23232
1 changed files with 2 additions and 3 deletions

View File

@ -23,6 +23,7 @@
#include "clang/Basic/ABI.h" #include "clang/Basic/ABI.h"
#include "clang/Basic/DiagnosticOptions.h" #include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/TargetInfo.h" #include "clang/Basic/TargetInfo.h"
#include "llvm/ADT/StringMap.h"
#include <map> #include <map>
using namespace clang; using namespace clang;
@ -48,9 +49,7 @@ class MicrosoftCXXNameMangler {
const NamedDecl *Structor; const NamedDecl *Structor;
unsigned StructorType; unsigned StructorType;
// FIXME: audit the performance of BackRefMap as it might do way too many typedef llvm::StringMap<unsigned> BackRefMap;
// copying of strings.
typedef std::map<std::string, unsigned> BackRefMap;
BackRefMap NameBackReferences; BackRefMap NameBackReferences;
bool UseNameBackReferences; bool UseNameBackReferences;