diff options
author | Pavel Labath <pavel@labath.sk> | 2018-12-12 15:46:18 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2018-12-12 15:46:18 +0000 |
commit | ef8683abec6b4f36cef4bba2fd6a4b69f0e59f22 (patch) | |
tree | d1d7518afc2b5d089c6106c179cfe94ad0cf42af /llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | |
parent | 9d1fa349a46a8ace536b32bc6d6eb40fee0ebc40 (diff) | |
download | bcm5719-llvm-ef8683abec6b4f36cef4bba2fd6a4b69f0e59f22.tar.gz bcm5719-llvm-ef8683abec6b4f36cef4bba2fd6a4b69f0e59f22.zip |
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.
llvm-svn: 348936
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions