This patch adds a helper function to test target architecture is AArch64 or not. This also tightens isAArch64* helpers by adding an extra architecture check.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/packages/Python/lldbsuite/test/lldbtest.py | ||
---|---|---|
1296 | This can be: return self.getArchitecture().lower() == "aarch64" Unless you're expecting "aarch64_be" or "aarch64_32" as well. return "aarch64" in self.getArchitecture().lower() Not sure if lldb just has the single name. |
lldb/packages/Python/lldbsuite/test/lldbtest.py | ||
---|---|---|
1296 | This was intentional as I wanted to keep this helper checking for platform architecture regardless of ABI or endianess. For an ILP32 inferior or be inferior our Native* are same as normal aarch64. |
lldb/packages/Python/lldbsuite/test/lldbtest.py | ||
---|---|---|
1296 | I still think return self.getArchitecture().lower() == "aarch64" Is the same thing unless you intend to expand the list. (but I understand what you're doing and either way works just a bit less neat IMO) |
lldb/packages/Python/lldbsuite/test/lldbtest.py | ||
---|---|---|
1296 | Oh yes agreed, I dunno what I was thinking :) Let me fix this. |
This can be:
Unless you're expecting "aarch64_be" or "aarch64_32" as well.
Not sure if lldb just has the single name.