aboutsummaryrefslogtreecommitdiff
path: root/lld/MachO/Writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/MachO/Writer.h')
-rw-r--r--lld/MachO/Writer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lld/MachO/Writer.h b/lld/MachO/Writer.h
index 88baa8a1e4bb..56f6f7ae6fe7 100644
--- a/lld/MachO/Writer.h
+++ b/lld/MachO/Writer.h
@@ -15,6 +15,8 @@ namespace lld {
namespace macho {
class OutputSection;
+class InputSection;
+class Symbol;
class LoadCommand {
public:
@@ -23,10 +25,14 @@ public:
virtual void writeTo(uint8_t *buf) const = 0;
};
-void writeResult();
+template <class LP> void writeResult();
void createSyntheticSections();
+// Add bindings for symbols that need weak or non-lazy bindings.
+void addNonLazyBindingEntries(const Symbol *, const InputSection *,
+ uint64_t offset, int64_t addend = 0);
+
extern OutputSection *firstTLVDataSection;
} // namespace macho