diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 22:24:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 22:24:22 +0000 |
commit | 59a0e79631ed851d98cf9c2ba6fa5f9aafdfdc93 (patch) | |
tree | a910559464f8b9b14301d59fcb7948052071b3bd /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h | |
parent | d8b2da11360419a9f1d569468a9b2a8ca3dace20 (diff) | |
download | llvm-59a0e79631ed851d98cf9c2ba6fa5f9aafdfdc93.tar.gz llvm-59a0e79631ed851d98cf9c2ba6fa5f9aafdfdc93.tar.bz2 llvm-59a0e79631ed851d98cf9c2ba6fa5f9aafdfdc93.tar.xz |
Add getSymbolAlignment to the ObjectFile interface.
For regular object files this is only meaningful for common symbols. An object
file format with direct support for atoms should be able to provide alignment
information for all symbols.
This replaces getCommonSymbolAlignment and fixes
test-common-symbols-alignment.ll on darwin. This also includes a fix to
MachOObjectFile::getSymbolFlags. It was marking undefined symbols as common
(already tested by existing mcjit tests now that it is used).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h index 3211a1c7ea..51873b1f4b 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h @@ -194,13 +194,6 @@ protected: return (uint8_t*)Sections[SectionID].Address; } - // Subclasses can override this method to get the alignment requirement of - // a common symbol. Returns no alignment requirement if not implemented. - virtual unsigned getCommonSymbolAlignment(const SymbolRef &Sym) { - return 0; - } - - void writeInt16BE(uint8_t *Addr, uint16_t Value) { if (sys::IsLittleEndianHost) Value = sys::SwapByteOrder(Value); |