diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:58 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-19 07:02:58 +0000 |
commit | da06c7cfa0388de29a4024d8d386e48f2fb13ed6 (patch) | |
tree | dc28e84fc2bb9a4a4d9873fe4d04946fe3f7f4c0 /COFF/Chunks.h | |
parent | 267829774358b5aebd3e726ae318813bd48129bb (diff) | |
download | src-da06c7cfa0388de29a4024d8d386e48f2fb13ed6.tar.gz src-da06c7cfa0388de29a4024d8d386e48f2fb13ed6.zip |
Vendor import of lld trunk r308421:vendor/lld/lld-trunk-r308421
Notes
Notes:
svn path=/vendor/lld/dist/; revision=321192
svn path=/vendor/lld/lld-trunk-r308421/; revision=321193; tag=vendor/lld/lld-trunk-r308421
Diffstat (limited to 'COFF/Chunks.h')
-rw-r--r-- | COFF/Chunks.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/COFF/Chunks.h b/COFF/Chunks.h index fc3f5d0df4b6..ece5419e255e 100644 --- a/COFF/Chunks.h +++ b/COFF/Chunks.h @@ -112,7 +112,7 @@ protected: }; // A chunk corresponding a section of an input file. -class SectionChunk : public Chunk { +class SectionChunk final : public Chunk { // Identical COMDAT Folding feature accesses section internal data. friend class ICF; @@ -188,6 +188,9 @@ public: return SectionName == ".debug" || SectionName.startswith(".debug$"); } + // True if this is a DWARF debug info chunk. + bool isDWARF() const { return SectionName.startswith(".debug_"); } + // Allow iteration over the bodies of this chunk's relocated symbols. llvm::iterator_range<symbol_iterator> symbols() const { return llvm::make_range(symbol_iterator(File, Relocs.begin()), |