diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-05 22:41:20 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-05 22:41:20 +0000 |
commit | 517aaf27d7802c919b82c6bd9f95eceda5f3d535 (patch) | |
tree | 6033dfbd8286abd816cf902e9c018bbf5622745b /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | f698d7775a96afd6385b0f9b9c66646df8feb88a (diff) | |
download | llvm-517aaf27d7802c919b82c6bd9f95eceda5f3d535.tar.gz llvm-517aaf27d7802c919b82c6bd9f95eceda5f3d535.tar.bz2 llvm-517aaf27d7802c919b82c6bd9f95eceda5f3d535.tar.xz |
Add a DIELocList class to handle pointers into the location list.
This enables us to figure out where in the debug_loc section our
locations are so that we can eventually hash them. It also helps
remove some special case code in emission. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index df686581b2..ba83b8b8d1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2032,17 +2032,6 @@ void DwarfDebug::emitDIE(DIE *Die) { } break; } - case dwarf::DW_AT_location: { - if (DIELabel *L = dyn_cast<DIELabel>(Values[i])) { - if (Asm->MAI->doesDwarfUseRelocationsAcrossSections()) - Asm->EmitSectionOffset(L->getValue(), DwarfDebugLocSectionSym); - else - Asm->EmitLabelDifference(L->getValue(), DwarfDebugLocSectionSym, 4); - } else { - Values[i]->EmitValue(Asm, Form); - } - break; - } case dwarf::DW_AT_accessibility: { if (Asm->isVerbose()) { DIEInteger *V = cast<DIEInteger>(Values[i]); |