[PATCH] D126623: [XCOFF] write the real source file name in C_FILE symbol.

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 29 21:43:30 PDT 2022


shchenz added inline comments.


================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:499
+  if (!Asm.getFileNames().empty())
+    SourceFileName = Asm.getFileNames().front().first;
   if (nameShouldBeInStringTable(SourceFileName))
----------------
What if we are compiling a .s file and there are more than one `.file` in the file? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126623/new/

https://reviews.llvm.org/D126623



More information about the llvm-commits mailing list