[llvm] r238140 - Use a simple initial value for the ordinal.
rafael.espindola at gmail.com
Mon May 25 07:18:25 PDT 2015
Date: Mon May 25 09:18:24 2015
New Revision: 238140
Use a simple initial value for the ordinal.
The odd value was only used by the ELF writer to check if the section was one
that it had created.
--- llvm/trunk/include/llvm/MC/MCSection.h (original)
+++ llvm/trunk/include/llvm/MC/MCSection.h Mon May 25 09:18:24 2015
@@ -40,7 +40,7 @@ private:
/// The alignment requirement of this section.
unsigned Alignment = 1;
/// The section index in the assemblers section list.
- unsigned Ordinal = ~UINT32_C(0);
+ unsigned Ordinal = 0;
MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin)
More information about the llvm-commits