llvm.org GIT mirror llvm / b4b26f8
Revert "Replace some uses of std:map<std::string,...> with StringMap." StringMap iterators are not deterministic, and that's more important here than speed or memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155039 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 8 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
723723 Records.getAllDerivedDefinitions("InstAlias");
724724
725725 // Create a map from the qualified name to a list of potential matches.
726 StringMap<std::vector > AliasMap;
726 std::mapstd::vector > AliasMap;
727727 for (std::vector::iterator
728728 I = AllInstAliases.begin(), E = AllInstAliases.end(); I != E; ++I) {
729729 CodeGenInstAlias *Alias = new CodeGenInstAlias(*I, Target);
737737
738738 // A map of which conditions need to be met for each instruction operand
739739 // before it can be matched to the mnemonic.
740 StringMap > IAPrinterMap;
741
742 for (StringMap >::iterator
740 std::map > IAPrinterMap;
741
742 for (std::map >::iterator
743743 I = AliasMap.begin(), E = AliasMap.end(); I != E; ++I) {
744744 std::vector &Aliases = I->second;
745745
827827 }
828828
829829 if (CantHandle) continue;
830 IAPrinterMap[I->first()].push_back(IAP);
830 IAPrinterMap[I->first].push_back(IAP);
831831 }
832832 }
833833
841841 std::string Cases;
842842 raw_string_ostream CasesO(Cases);
843843
844 for (StringMap<std::vector >::iterator
844 for (std::mapstd::vector >::iterator
845845 I = IAPrinterMap.begin(), E = IAPrinterMap.end(); I != E; ++I) {
846846 std::vector &IAPs = I->second;
847847 std::vector UniqueIAPs;
864864
865865 if (UniqueIAPs.empty()) continue;
866866
867 CasesO.indent(2) << "case " << I->first() << ":\n";
867 CasesO.indent(2) << "case " << I->first << ":\n";
868868
869869 for (std::vector::iterator
870870 II = UniqueIAPs.begin(), IE = UniqueIAPs.end(); II != IE; ++II) {