mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
70f1e167ac
Currently, `dyn_cast<XCOFFObjectFile>` always does cast and returns a pointer, even when we pass `ELF`/`Wasm`/`Mach-O` or `COFF` instead of `XCOFF`. It happens because `XCOFFObjectFile` class does not implement `classof`. I've fixed it and added a unit test. Differential revision: https://reviews.llvm.org/D86542