mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Make the compile unit map a MapVector so that we can assume a stable
output ordering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2880,8 +2880,9 @@ void DwarfDebug::emitDebugRanges() {
|
|||||||
unsigned char Size = Asm->getDataLayout().getPointerSize();
|
unsigned char Size = Asm->getDataLayout().getPointerSize();
|
||||||
|
|
||||||
// Grab the specific ranges for the compile units in the module.
|
// Grab the specific ranges for the compile units in the module.
|
||||||
for (DenseMap<const MDNode *, DwarfCompileUnit *>::iterator I = CUMap.begin(),
|
for (MapVector<const MDNode *, DwarfCompileUnit *>::iterator
|
||||||
E = CUMap.end();
|
I = CUMap.begin(),
|
||||||
|
E = CUMap.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
DwarfCompileUnit *TheCU = I->second;
|
DwarfCompileUnit *TheCU = I->second;
|
||||||
|
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
#include "llvm/ADT/SetVector.h"
|
#include "llvm/ADT/SetVector.h"
|
||||||
#include "llvm/ADT/SmallPtrSet.h"
|
#include "llvm/ADT/SmallPtrSet.h"
|
||||||
#include "llvm/ADT/StringMap.h"
|
#include "llvm/ADT/StringMap.h"
|
||||||
|
#include "llvm/ADT/MapVector.h"
|
||||||
#include "llvm/CodeGen/AsmPrinter.h"
|
#include "llvm/CodeGen/AsmPrinter.h"
|
||||||
#include "llvm/CodeGen/LexicalScopes.h"
|
#include "llvm/CodeGen/LexicalScopes.h"
|
||||||
#include "llvm/DebugInfo.h"
|
#include "llvm/DebugInfo.h"
|
||||||
@@ -334,7 +335,7 @@ class DwarfDebug : public AsmPrinterHandler {
|
|||||||
DwarfCompileUnit *FirstCU;
|
DwarfCompileUnit *FirstCU;
|
||||||
|
|
||||||
// Maps MDNode with its corresponding DwarfCompileUnit.
|
// Maps MDNode with its corresponding DwarfCompileUnit.
|
||||||
DenseMap<const MDNode *, DwarfCompileUnit *> CUMap;
|
MapVector<const MDNode *, DwarfCompileUnit *> CUMap;
|
||||||
|
|
||||||
// Maps subprogram MDNode with its corresponding DwarfCompileUnit.
|
// Maps subprogram MDNode with its corresponding DwarfCompileUnit.
|
||||||
DenseMap<const MDNode *, DwarfCompileUnit *> SPMap;
|
DenseMap<const MDNode *, DwarfCompileUnit *> SPMap;
|
||||||
|
Reference in New Issue
Block a user