summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-08-29 23:17:47 +0000
committerLang Hames <lhames@gmail.com>2014-08-29 23:17:47 +0000
commite1287c01be7c0b0e3622dd2595adceaa12b3ceff (patch)
tree31d8a2573b179c7e9ddfde4b028999956ed0f3ef /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
parent21361fb308fa283eeb8cd2ed27a981b276eeaa15 (diff)
downloadbcm5719-llvm-e1287c01be7c0b0e3622dd2595adceaa12b3ceff.tar.gz
bcm5719-llvm-e1287c01be7c0b0e3622dd2595adceaa12b3ceff.zip
[MCJIT] Move endian-aware read/writes from RuntimeDyldMachO into
RuntimeDyldImpl. These are platform independent, and moving them to the base class allows RuntimeDyldChecker to use them too. llvm-svn: 216801
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
index 379cb4ad868..d2c58eb0a64 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
@@ -286,6 +286,13 @@ protected:
*(Addr + 7) = Value & 0xFF;
}
+ /// Endian-aware read Read the least significant Size bytes from Src.
+ uint64_t readBytesUnaligned(uint8_t *Src, unsigned Size) const;
+
+ /// Endian-aware write. Write the least significant Size bytes from Value to
+ /// Dst.
+ void writeBytesUnaligned(uint64_t Value, uint8_t *Dst, unsigned Size) const;
+
/// \brief Given the common symbols discovered in the object file, emit a
/// new section for them and update the symbol mappings in the object and
/// symbol table.
OpenPOWER on IntegriCloud