commit | 9936b80df5a766d645131b84fb1ab6b131f5ba58 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Thu Jan 29 17:33:21 2015 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Thu Jan 29 17:33:21 2015 +0000 |
tree | d121dd1091b345b92c2ddf51714960c90e710f7b | |
parent | dec5091220594f38b701a92fb3036d74bd52ecba [diff] |
Compute the ELF SectionKind from the flags. Any code creating an MCSectionELF knows ELF and already provides the flags. SectionKind is an abstraction used by common code that uses a plain MCSection. Use the flags to compute the SectionKind. This removes a lot of guessing and boilerplate from the MCSectionELF construction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227476 91177308-0d34-0410-b5e6-96231b3b80d8