diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-14 23:56:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-14 23:56:24 +0000 |
commit | 97bdf94da37d8780c0f08ad18494e682ba28b544 (patch) | |
tree | e6a12ad6a4dbb7ffbe204bc70f1dee84127517c1 /llvm/lib | |
parent | b08ccb62d5be36e84afa9fd1042630713f08cac6 (diff) | |
download | bcm5719-llvm-97bdf94da37d8780c0f08ad18494e682ba28b544.tar.gz bcm5719-llvm-97bdf94da37d8780c0f08ad18494e682ba28b544.zip |
There is no need to track compile unit offsets if there is only one compile unit.
llvm-svn: 101315
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index e2767b9e187..e9f074ea307 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2450,7 +2450,6 @@ void DwarfDebug::computeSizeAndOffsets() { sizeof(int8_t); // Pointer Size (in bytes) computeSizeAndOffset(ModuleCU->getCUDie(), Offset, true); - CompileUnitOffsets[ModuleCU] = 0; } /// EmitSectionSym - Switch to the specified MCSection and emit an assembler diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 4e81f5919d1..0de20c76e11 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -193,11 +193,6 @@ class DwarfDebug { /// instruction. DenseMap<const MachineInstr *, MCSymbol *> InsnAfterLabelMap; - /// CompileUnitOffsets - A vector of the offsets of the compile units. This is - /// used when calculating the "origin" of a concrete instance of an inlined - /// function. - DenseMap<CompileUnit *, unsigned> CompileUnitOffsets; - /// Previous instruction's location information. This is used to determine /// label location to indicate scope boundries in dwarf debug info. DebugLoc PrevInstLoc; |