From 7dafb232323fe9a620ca08ab25c87ee90e30e408 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 22 May 2013 17:16:39 +0000 Subject: [PATCH] Use StringMap in MicrosoftMangle to resolve FIXME. llvm-svn: 182488 --- clang/lib/AST/MicrosoftMangle.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index d03060b391de..e360a934083c 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -23,6 +23,7 @@ #include "clang/Basic/ABI.h" #include "clang/Basic/DiagnosticOptions.h" #include "clang/Basic/TargetInfo.h" +#include "llvm/ADT/StringMap.h" #include using namespace clang; @@ -48,9 +49,7 @@ class MicrosoftCXXNameMangler { const NamedDecl *Structor; unsigned StructorType; - // FIXME: audit the performance of BackRefMap as it might do way too many - // copying of strings. - typedef std::map BackRefMap; + typedef llvm::StringMap BackRefMap; BackRefMap NameBackReferences; bool UseNameBackReferences;