summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-01-29 22:06:23 +0000
committerEric Christopher <echristo@gmail.com>2014-01-29 22:06:23 +0000
commit179fba19faf538a7e368f88ba704026dcae956d2 (patch)
tree58852fc6c68739bc5df634aed94ad02bf12d7ffc /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent95531b696901d32c2cc98a988dc91d69373c70df (diff)
downloadbcm5719-llvm-179fba19faf538a7e368f88ba704026dcae956d2.tar.gz
bcm5719-llvm-179fba19faf538a7e368f88ba704026dcae956d2.zip
Make the compile unit map a MapVector so that we can assume a stable
output ordering. llvm-svn: 200421
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 610907255b9..66be6058fd2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2880,8 +2880,9 @@ void DwarfDebug::emitDebugRanges() {
unsigned char Size = Asm->getDataLayout().getPointerSize();
// Grab the specific ranges for the compile units in the module.
- for (DenseMap<const MDNode *, DwarfCompileUnit *>::iterator I = CUMap.begin(),
- E = CUMap.end();
+ for (MapVector<const MDNode *, DwarfCompileUnit *>::iterator
+ I = CUMap.begin(),
+ E = CUMap.end();
I != E; ++I) {
DwarfCompileUnit *TheCU = I->second;
OpenPOWER on IntegriCloud