[lld] r233617 - [ELF] Change type of `OutputSection::setType()` argument to int64_t

Simon Atanasyan simon at atanasyan.com
Mon Mar 30 15:36:01 PDT 2015


Author: atanasyan
Date: Mon Mar 30 17:36:01 2015
New Revision: 233617

URL: http://llvm.org/viewvc/llvm-project?rev=233617&view=rev
Log:
[ELF] Change type of `OutputSection::setType()` argument to int64_t

Type of `OutputSection::_type` field is int64_t. This change makes
the field's and the argument's types consistent and allows to assign
full range of values to the `OutputSection::_type` field.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h

Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=233617&r1=233616&r2=233617&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Mon Mar 30 17:36:01 2015
@@ -480,7 +480,7 @@ public:
 
   void setFlag(uint64_t flags) { _flags = flags; }
 
-  void setType(int16_t type) { _type = type; }
+  void setType(int64_t type) { _type = type; }
 
   range<ChunkIter> sections() { return _sections; }
 





More information about the llvm-commits mailing list