summaryrefslogtreecommitdiffstats
path: root/lld/ELF/EhFrame.h
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2016-11-23 09:45:17 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2016-11-23 09:45:17 +0000
commit531df4fcef7ede296b5b7e9c4e7d296763eaeb67 (patch)
treee42602e370a48ac5b955e86a5c68c2dae14379a2 /lld/ELF/EhFrame.h
parent341c9dd9c40dfc34569b615c52162aeeec5f2a68 (diff)
downloadbcm5719-llvm-531df4fcef7ede296b5b7e9c4e7d296763eaeb67.tar.gz
bcm5719-llvm-531df4fcef7ede296b5b7e9c4e7d296763eaeb67.zip
[ELF] Print error location in .eh_frame parser
Differential revision: https://reviews.llvm.org/D26914 llvm-svn: 287750
Diffstat (limited to 'lld/ELF/EhFrame.h')
-rw-r--r--lld/ELF/EhFrame.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lld/ELF/EhFrame.h b/lld/ELF/EhFrame.h
index 0d5a2ff2f41..cadc93d3a2e 100644
--- a/lld/ELF/EhFrame.h
+++ b/lld/ELF/EhFrame.h
@@ -14,8 +14,12 @@
namespace lld {
namespace elf {
-template <class ELFT> size_t readEhRecordSize(ArrayRef<uint8_t> Data);
-template <class ELFT> uint8_t getFdeEncoding(ArrayRef<uint8_t> Data);
+template <class ELFT> class InputSectionBase;
+struct EhSectionPiece;
+
+template <class ELFT>
+size_t readEhRecordSize(InputSectionBase<ELFT> *S, size_t Off);
+template <class ELFT> uint8_t getFdeEncoding(EhSectionPiece *P);
}
}
OpenPOWER on IntegriCloud