[llvm] [XCOFF][OBJECT] get symbol size by calling XCOFF interfaces (PR #67304)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 07:43:07 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);
----------------
chenzheng1030 wrote:

Done. Thanks.

https://github.com/llvm/llvm-project/pull/67304


More information about the llvm-commits mailing list