summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-23 23:39:55 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-23 23:39:55 +0000
commit427e435b21beb44355483e8dd41bd5b3e70dfb41 (patch)
treeb3c2203700d6e69414c03a20d51a1c0f67bed554
parentf9d8c6cebbdec3ec97cd5b9403a2e1ed80d2f84f (diff)
downloadbcm5719-llvm-427e435b21beb44355483e8dd41bd5b3e70dfb41.tar.gz
bcm5719-llvm-427e435b21beb44355483e8dd41bd5b3e70dfb41.zip
Comments for r191234 as suggested by Eric Christopher.
llvm-svn: 191244
-rw-r--r--llvm/lib/DebugInfo/DWARFContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp
index c54a1da6224..95a1b628f22 100644
--- a/llvm/lib/DebugInfo/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARFContext.cpp
@@ -626,6 +626,8 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) :
RangeDWOSection = data;
}
} else if (name == "debug_types") {
+ // Find debug_types data by section rather than name as there are
+ // multiple, comdat grouped, debug_types sections.
TypesSections[*i].Data = data;
}
@@ -649,6 +651,8 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) :
if (!Map) {
if (RelSecName != "debug_types")
continue;
+ // Find debug_types relocs by section rather than name as there are
+ // multiple, comdat grouped, debug_types sections.
Map = &TypesSections[*RelocatedSection].Relocs;
}
OpenPOWER on IntegriCloud