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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 00:45:54 PDT 2023


================
@@ -59,6 +59,13 @@ llvm::object::computeSymbolSizes(const ObjectFile &O) {
     return Ret;
   }
 
+  if (const auto *E = dyn_cast<XCOFFObjectFile>(&O)) {
+    auto Syms = E->symbols();
----------------
jh7370 wrote:

This local variable is unnecessary. Just put it directly into the for loop sequence.

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


More information about the llvm-commits mailing list