summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-03-05 22:41:20 +0000
committerEric Christopher <echristo@gmail.com>2014-03-05 22:41:20 +0000
commit517aaf27d7802c919b82c6bd9f95eceda5f3d535 (patch)
tree6033dfbd8286abd816cf902e9c018bbf5622745b /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentf698d7775a96afd6385b0f9b9c66646df8feb88a (diff)
downloadllvm-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.cpp11
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]);