[llvm] [llvm-objdump][AVR] Detect AVR architecture from ELF flags for disassembling (PR #180468)
Ruoyu Qiu via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 01:31:54 PST 2026
================
----------------
cabbaken wrote:
Based on @benshi001 mentioned in #174731 :
> AVR should not have other object file format than ELF.
I don't think we need to emit an error in this case.
```cpp
} else if (MCPU.empty() && Obj->makeTriple().isAVR()) {
```
`Obj->makeTriple().isAVR()` has ensured the Object file is an ELF file if AVR has only ELF format.
@benshi001 Do you have any advice?
https://github.com/llvm/llvm-project/pull/180468
More information about the llvm-commits
mailing list