diff options
author | Lang Hames <lhames@gmail.com> | 2014-08-29 23:17:47 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-08-29 23:17:47 +0000 |
commit | e1287c01be7c0b0e3622dd2595adceaa12b3ceff (patch) | |
tree | 31d8a2573b179c7e9ddfde4b028999956ed0f3ef /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h | |
parent | 21361fb308fa283eeb8cd2ed27a981b276eeaa15 (diff) | |
download | bcm5719-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.h | 7 |
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. |