[llvm] [XCOFF][OBJECT] get symbol size by calling XCOFF interfaces (PR #67304)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 11 07:13:58 PDT 2023
================
@@ -812,19 +825,35 @@ class XCOFFSymbolRef {
#undef GETVALUE
uintptr_t getEntryAddress() const {
- return Entry32 ? reinterpret_cast<uintptr_t>(Entry32)
- : reinterpret_cast<uintptr_t>(Entry64);
+ return getObject()->is64Bit() ? reinterpret_cast<uintptr_t>(Entry64)
+ : reinterpret_cast<uintptr_t>(Entry32);
----------------
diggerlin wrote:
change to `return getRawDataRefImpl().p; `
https://github.com/llvm/llvm-project/pull/67304
More information about the llvm-commits
mailing list