[llvm-commits] [llvm-gcc-4.2] r52805 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Bill Wendling
isanbard at gmail.com
Thu Jun 26 18:24:36 PDT 2008
Author: void
Date: Thu Jun 26 20:24:36 2008
New Revision: 52805
URL: http://llvm.org/viewvc/llvm-project?rev=52805&view=rev
Log:
Use DenseMap instead of std::map
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=52805&r1=52804&r2=52805&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Thu Jun 26 20:24:36 2008
@@ -901,9 +901,9 @@
if (!GVs.empty())
GlobalVariableAnchor = ((GlobalVariableDesc*)GVs[0])->getAnchor();
- const std::map<GlobalVariable *, DebugInfoDesc *> &GlobalDescs
+ const DenseMap<GlobalVariable *, DebugInfoDesc *> &GlobalDescs
= MMI.getDIDeserializer()->getGlobalDescs();
- for (std::map<GlobalVariable *, DebugInfoDesc *>::const_iterator
+ for (DenseMap<GlobalVariable *, DebugInfoDesc *>::const_iterator
I = GlobalDescs.begin(), E = GlobalDescs.end(); I != E; ++I)
SR.addDescriptor(I->second, I->first);
}
More information about the llvm-commits
mailing list