[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 01:09:54 PDT 2023
================
@@ -787,6 +794,14 @@ class XCOFFSymbolRef {
uint64_t getValue64() const { return Entry64->Value; }
+ const XCOFFObjectFile *getObject() const {
+ return cast<XCOFFObjectFile>(BasicSymbolRef::getObject());
+ }
----------------
chenzheng1030 wrote:
Done. Since for now, there is only one user for this function, I inlined this function to its caller.
https://github.com/llvm/llvm-project/pull/67304
More information about the llvm-commits
mailing list