[llvm] r258129 - Handle 64 bit offsets.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 07:19:09 PST 2016
Author: rafael
Date: Tue Jan 19 09:19:08 2016
New Revision: 258129
URL: http://llvm.org/viewvc/llvm-project?rev=258129&view=rev
Log:
Handle 64 bit offsets.
No tests since llvm-mc takes 14 seconds on it. I will try to improve it
and then test.
Part of pr26208.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=258129&r1=258128&r2=258129&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Tue Jan 19 09:19:08 2016
@@ -1279,7 +1279,7 @@ void ELFObjectWriter::writeObject(MCAsse
uint64_t NaturalAlignment = is64Bit() ? 8 : 4;
align(NaturalAlignment);
- const unsigned SectionHeaderOffset = getStream().tell();
+ const uint64_t SectionHeaderOffset = getStream().tell();
// ... then the section header table ...
writeSectionHeader(Layout, SectionIndexMap, SectionOffsets);
More information about the llvm-commits
mailing list