[lld] [lld][MachO] Prevent doubled N_SO when comp_dir and name absolute (PR #71608)

Daniel Thornburgh via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 15:36:58 PST 2023


================
@@ -1522,13 +1522,17 @@ void ObjFile::registerEhFrames(Section &ehFrameSection) {
 }
 
 std::string ObjFile::sourceFile() const {
+  const char *unitName = compileUnit->getUnitDIE().getShortName();
----------------
mysterymath wrote:

Seems more robust just to use the same comment as there.

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


More information about the llvm-commits mailing list