[llvm] [XCOFF][OBJECT] get symbol size by calling XCOFF interfaces (PR #67304)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 23:21:55 PDT 2023
================
@@ -787,6 +794,11 @@ class XCOFFSymbolRef {
uint64_t getValue64() const { return Entry64->Value; }
+ uint64_t getSize() const {
+ return cast<XCOFFObjectFile>(BasicSymbolRef::getObject())
+ ->getSymbolSize(getRawDataRefImpl());
----------------
chenzheng1030 wrote:
You are right. XCOFFSymRef is not the same with ELFSymRef or GOFFSymbolRef which always has 0 DataRefImpl.
https://github.com/llvm/llvm-project/pull/67304
More information about the llvm-commits
mailing list