diff options
| author | Fangrui Song <i@maskray.me> | 2024-03-14 21:55:23 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2024-03-14 21:55:23 -0700 |
| commit | e895c523b53c97c92a69ba0997e8904edd1e40a8 (patch) | |
| tree | c6447740cb6c9a1bb30f0ba47d7385bb27fc210b /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp | |
| parent | c54f22f5fe3eef055df4be7239b890eaab15f5ff (diff) | |
| download | llvm-e895c523b53c97c92a69ba0997e8904edd1e40a8.zip llvm-e895c523b53c97c92a69ba0997e8904edd1e40a8.tar.gz llvm-e895c523b53c97c92a69ba0997e8904edd1e40a8.tar.bz2 | |
[Object] getBuildAttributes: check e_machine. NFC
getBuildAttributes is only called for ARM/RISCV object files and
`SHT_ARM_ATTRIBUTES == SHT_RISCV_ATTRIBUTES`, so the following check
`Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES || Sec.sh_type == ELF::SHT_RISCV_ATTRIBUTES`
is actually fine. But the convention is to guard such processor-specific
section type checks with an e_machine test.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions
