diff options
author | Eric Christopher <echristo@gmail.com> | 2014-01-29 22:06:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-01-29 22:06:23 +0000 |
commit | 179fba19faf538a7e368f88ba704026dcae956d2 (patch) | |
tree | 58852fc6c68739bc5df634aed94ad02bf12d7ffc /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 95531b696901d32c2cc98a988dc91d69373c70df (diff) | |
download | bcm5719-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.cpp | 5 |
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; |