HomePhabricator

ELF: Clean up section type computation

Description

ELF: Clean up section type computation

Move code into a separate function, and replace the if-else chain with
llvm::StringSwitch.

A slight behavioral change is that now I use the section flags
(SHF_TLS) instead of the section name to set the thread-specific
property. There is no explanation in the original commit introducing
this (r153537) as to why that was done this way, but the new behavior
should be more correct.

Details

Committed
labathDec 12 2018, 7:46 AM
Parents
rL348935: [mips] Enable using of integrated assembler in all cases.
Branches
Unknown
Tags
Unknown