From 325478d78dcf8a113c0bda932f76222b6299fa43 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 18 Apr 2012 19:13:59 +0000 Subject: Replace some uses of std:map with StringMap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155037 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/AsmWriterEmitter.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index d079b45e8d..b8032834a2 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -724,7 +724,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { Records.getAllDerivedDefinitions("InstAlias"); // Create a map from the qualified name to a list of potential matches. - std::map > AliasMap; + StringMap > AliasMap; for (std::vector::iterator I = AllInstAliases.begin(), E = AllInstAliases.end(); I != E; ++I) { CodeGenInstAlias *Alias = new CodeGenInstAlias(*I, Target); @@ -738,9 +738,9 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { // A map of which conditions need to be met for each instruction operand // before it can be matched to the mnemonic. - std::map > IAPrinterMap; + StringMap > IAPrinterMap; - for (std::map >::iterator + for (StringMap >::iterator I = AliasMap.begin(), E = AliasMap.end(); I != E; ++I) { std::vector &Aliases = I->second; @@ -828,7 +828,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { } if (CantHandle) continue; - IAPrinterMap[I->first].push_back(IAP); + IAPrinterMap[I->first()].push_back(IAP); } } @@ -842,7 +842,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { std::string Cases; raw_string_ostream CasesO(Cases); - for (std::map >::iterator + for (StringMap >::iterator I = IAPrinterMap.begin(), E = IAPrinterMap.end(); I != E; ++I) { std::vector &IAPs = I->second; std::vector UniqueIAPs; @@ -865,7 +865,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) { if (UniqueIAPs.empty()) continue; - CasesO.indent(2) << "case " << I->first << ":\n"; + CasesO.indent(2) << "case " << I->first() << ":\n"; for (std::vector::iterator II = UniqueIAPs.begin(), IE = UniqueIAPs.end(); II != IE; ++II) { -- cgit v1.2.3-18-g5258