There is no need to track compile unit offsets if there is only one compile unit.
authorDevang Patel <dpatel@apple.com>
Wed, 14 Apr 2010 23:56:24 +0000 (23:56 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 14 Apr 2010 23:56:24 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101315 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h

index e2767b9e18762d79f5c8ddf4c1a22d3845f2d898..e9f074ea3071d9fd3007ebb5c39f2e10f635e39a 100644 (file)
@@ -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
index 4e81f5919d194f0871dd0d7a287f0954d03a3a95..0de20c76e11f951947b86cc59b867a2fa2ab2a9a 100644 (file)
@@ -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;