From: Rafael Espindola Date: Mon, 25 May 2015 14:18:24 +0000 (+0000) Subject: Use a simple initial value for the ordinal. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6cd7f1bca63e0524b0678640f4c3194db952bef2;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238140 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCSection.h b/include/llvm/MC/MCSection.h index ca902f65944..dfe3dc90923 100644 --- a/include/llvm/MC/MCSection.h +++ b/include/llvm/MC/MCSection.h @@ -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)