[lld] r346360 - [DWARFv5] Read and dump multiple .debug_info sections.
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 7 13:39:09 PST 2018
Author: probinson
Date: Wed Nov 7 13:39:09 2018
New Revision: 346360
URL: http://llvm.org/viewvc/llvm-project?rev=346360&view=rev
Log:
[DWARFv5] Read and dump multiple .debug_info sections.
Type units go in .debug_info comdats, not .debug_types, in v5.
Differential Revision: https://reviews.llvm.org/D53907
Modified:
lld/trunk/ELF/DWARF.h
Modified: lld/trunk/ELF/DWARF.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DWARF.h?rev=346360&r1=346359&r2=346360&view=diff
==============================================================================
--- lld/trunk/ELF/DWARF.h (original)
+++ lld/trunk/ELF/DWARF.h Wed Nov 7 13:39:09 2018
@@ -11,6 +11,7 @@
#define LLD_ELF_DWARF_H
#include "InputFiles.h"
+#include "llvm/ADT/STLExtras.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/Object/ELF.h"
@@ -27,8 +28,9 @@ template <class ELFT> class LLDDwarfObj
public:
explicit LLDDwarfObj(ObjFile<ELFT> *Obj);
- const llvm::DWARFSection &getInfoSection() const override {
- return InfoSection;
+ void forEachInfoSections(
+ llvm::function_ref<void(const llvm::DWARFSection &)> F) const override {
+ F(InfoSection);
}
const llvm::DWARFSection &getRangeSection() const override {
More information about the llvm-commits
mailing list