X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FBytecode%2FWriter%2FWriter.cpp;h=df62bf934ba83c0c8839f02b8cb0e496947ad720;hb=ae052aa5a768d80757df981971ad560f0d9e0216;hp=bdd3ca4430026af6ecd0e4885fdee751c7adf5fa;hpb=b8cb5fe12c907e41b545d0ece5de3a9111b1e1d7;p=oota-llvm.git diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index bdd3ca44300..df62bf934ba 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -33,6 +33,7 @@ #include "llvm/Support/MathExtras.h" #include "llvm/Support/Streams.h" #include "llvm/System/Program.h" +#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/Statistic.h" #include @@ -1087,15 +1088,15 @@ void BytecodeWriter::outputValueSymbolTable(const ValueSymbolTable &VST) { // Organize the symbol table by type typedef std::pair PlaneMapEntry; - typedef std::vector PlaneMapVector; - typedef std::map PlaneMap; + typedef SmallVector PlaneMapVector; + typedef DenseMap PlaneMap; PlaneMap Planes; for (ValueSymbolTable::const_iterator SI = VST.begin(), SE = VST.end(); SI != SE; ++SI) Planes[SI->second->getType()] .push_back(std::make_pair(&SI->first, SI->second)); - for (PlaneMap::const_iterator PI = Planes.begin(), PE = Planes.end(); + for (PlaneMap::iterator PI = Planes.begin(), PE = Planes.end(); PI != PE; ++PI) { PlaneMapVector::const_iterator I = PI->second.begin(); PlaneMapVector::const_iterator End = PI->second.end();