[llvm] r238140 - Use a simple initial value for the ordinal.
Rafael Espindola
rafael.espindola at gmail.com
Mon May 25 07:18:25 PDT 2015
Author: rafael
Date: Mon May 25 09:18:24 2015
New Revision: 238140
URL: http://llvm.org/viewvc/llvm-project?rev=238140&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/MC/MCSection.h
Modified: llvm/trunk/include/llvm/MC/MCSection.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSection.h?rev=238140&r1=238139&r2=238140&view=diff
==============================================================================
--- 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;
protected:
MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin)
More information about the llvm-commits
mailing list