summaryrefslogtreecommitdiff
path: root/lld/ELF/Writer.h
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-07-12 08:50:42 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-07-12 08:50:42 +0000
commit74be7eb318466c00e3968f2bdf343bedc87f263b (patch)
tree2e7f65b9cfdc9285758a37295b180dca7a9e6067 /lld/ELF/Writer.h
parentba0f6b9f86bacb6f986034f090767ee030f17a02 (diff)
[ELF] - Make few members of Writer to be global and export them for reuse
Creating sections on linkerscript side requires some methods that can be reused if are exported from writer. Patch implements that change. Differential revision: http://reviews.llvm.org/D20104
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r--lld/ELF/Writer.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index f60ac89da2d..df25d8e404c 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -10,14 +10,28 @@
#ifndef LLD_ELF_WRITER_H
#define LLD_ELF_WRITER_H
+#include <memory>
+
+namespace llvm {
+ class StringRef;
+}
+
namespace lld {
namespace elf {
-
+template <class ELFT> class InputSectionBase;
+template <class ELFT> class ObjectFile;
template <class ELFT> class SymbolTable;
template <class ELFT> void writeResult(SymbolTable<ELFT> *Symtab);
template <class ELFT> void markLive();
+
+template <class ELFT>
+llvm::StringRef getOutputSectionName(InputSectionBase<ELFT> *S);
+
+template <class ELFT>
+void reportDiscarded(InputSectionBase<ELFT> *IS,
+ const std::unique_ptr<elf::ObjectFile<ELFT>> &File);
}
}