diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:20:46 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:20:46 +0000 |
commit | d19e91e5a8c974296c7cb1c058bd323bf9e95394 (patch) | |
tree | 236e9fa89836d7398ef14ccebaa83c4526228cbf /llvm/lib/CodeGen | |
parent | 8e7b93938de9bf4e6d2bcb6cb2aa6f7533aa2600 (diff) | |
download | bcm5719-llvm-d19e91e5a8c974296c7cb1c058bd323bf9e95394.tar.gz bcm5719-llvm-d19e91e5a8c974296c7cb1c058bd323bf9e95394.zip |
SmallPtrSet will be better
llvm-svn: 56583
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 1f15c4a748f..9ee3b5fb3aa 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -28,7 +28,6 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetRegisterInfo.h" -#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" @@ -262,7 +261,7 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) { std::multimap<const Section*, std::pair<MachineConstantPoolEntry, unsigned> > CPMap; CPMap CPs; - DenseSet<const Section*> Sections; + SmallPtrSet<const Section*, 5> Sections; for (unsigned i = 0, e = CP.size(); i != e; ++i) { MachineConstantPoolEntry CPE = CP[i]; @@ -272,7 +271,7 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) { } // Now print stuff into the calculated sections. - for (DenseSet<const Section*>::iterator IS = Sections.begin(), + for (SmallPtrSet<const Section*, 5>::iterator IS = Sections.begin(), ES = Sections.end(); IS != ES; ++IS) { SwitchToSection(*IS); EmitAlignment(MCP->getConstantPoolAlignment()); |