Use a simple initial value for the ordinal.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 May 2015 14:18:24 +0000 (14:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 May 2015 14:18:24 +0000 (14:18 +0000)
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

include/llvm/MC/MCSection.h

index ca902f6594435d1644f1e398ce7f61717ac5d116..dfe3dc90923bee8ebe2c01c3887b9ba806468f2c 100644 (file)
@@ -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)