[llvm-commits] [llvm] r56583 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 24 15:20:46 PDT 2008
Author: asl
Date: Wed Sep 24 17:20:46 2008
New Revision: 56583
URL: http://llvm.org/viewvc/llvm-project?rev=56583&view=rev
Log:
SmallPtrSet will be better
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=56583&r1=56582&r2=56583&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Wed Sep 24 17:20:46 2008
@@ -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 @@
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 @@
}
// 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());
More information about the llvm-commits
mailing list