forked from OSchip/llvm-project
Use StringMap in MicrosoftMangle to resolve FIXME.
llvm-svn: 182488
This commit is contained in:
parent
1fc96a323e
commit
7dafb23232
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue