[Orc] Drop arch check in the DebugObjectManagerPlugin for ELF
authorStefan Gränitz <stefan.graenitz@gmail.com>
Fri, 31 Mar 2023 10:48:16 +0000 (12:48 +0200)
committerStefan Gränitz <stefan.graenitz@gmail.com>
Fri, 31 Mar 2023 10:59:09 +0000 (12:59 +0200)
commit6231ba0eed7898020fab6393b2792bbfaa175efd
treef5a0aeff28a3f54c0283dc5f24db14ee6a86d377
parentbdbc9429fcc19b61da8f4c24584ea3927f251348
[Orc] Drop arch check in the DebugObjectManagerPlugin for ELF

Tested this with the new AArch32 backend on armv7l and it works without issues in GDB. The size of the load-address field is only 32-bit here, but we implicitly account for it by writing a ELFT::uint which is:
https://github.com/llvm/llvm-project/blob/release/16.x/llvm/include/llvm/Object/ELFTypes.h#L57

So, instead of adding a newly supported machine type, let's just drop this restriction althogether.
llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp