diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-09-23 23:39:55 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-09-23 23:39:55 +0000 |
commit | 75331656124ddfdc7829b4dd430083e140bd8549 (patch) | |
tree | ca72ae7e3cb4b94f491f01da75c00953d5a63928 /lib/DebugInfo/DWARFContext.cpp | |
parent | 118a0659ab8a4d0e0af343b88e5fa71a5c1eb6a6 (diff) | |
download | llvm-75331656124ddfdc7829b4dd430083e140bd8549.tar.gz llvm-75331656124ddfdc7829b4dd430083e140bd8549.tar.bz2 llvm-75331656124ddfdc7829b4dd430083e140bd8549.tar.xz |
Comments for r191234 as suggested by Eric Christopher.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index c54a1da622..95a1b628f2 100644 --- a/lib/DebugInfo/DWARFContext.cpp +++ b/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; } |