aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:20:46 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:20:46 +0000
commit96df425d01400afddde470e4e868a4008d0d801a (patch)
tree5483eff5cfcf39de5a0ff35cd6f97a27f4dcd846 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent4d43322fbff8d1233d86ba8c2af291352c3aca99 (diff)
downloadexternal_llvm-96df425d01400afddde470e4e868a4008d0d801a.zip
external_llvm-96df425d01400afddde470e4e868a4008d0d801a.tar.gz
external_llvm-96df425d01400afddde470e4e868a4008d0d801a.tar.bz2
SmallPtrSet will be better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 1f15c4a..9ee3b5f 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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());