Loading...
--- dyld/dyld-1284.13/mach_o/DataInCode.cpp
+++ dyld/dyld-1162/mach_o/DataInCode.cpp
@@ -28,6 +28,10 @@
#include "DataInCode.h"
+#if BUILDING_MACHO_WRITER
+#include <map>
+#endif
+
namespace mach_o {
DataInCode::DataInCode(const uint8_t* start, size_t size)
@@ -40,4 +44,19 @@
return Error::none();
}
+#if BUILDING_MACHO_WRITER
+
+DataInCode::DataInCode(std::span<const Entry> entries)
+{
+ assert(entries.empty());
+
+ this->_bytes.reserve(1);
+
+ // set up buffer
+ this->_dataInCodeStart = &this->_bytes.front();
+ this->_dataInCodeEnd = &this->_bytes.back();
+}
+
+#endif // BUILDING_MACHO_WRITER
+
} // namepace mach_o