[PATCH] D43002: Emit S_OBJNAME symbol in CodeView

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 18:29:50 PDT 2018


dblaikie added a comment.

In https://reviews.llvm.org/D43002#1279796, @rnk wrote:

> I was reviewing the records that msvc emits that clang does not, and I noticed this again.
>
> Here's a thought. Why are we putting this on the compile unit in the first place? Why not use a global named metadata node? Most of the complexity in this patch is from going through DICompileUnit, when we can just claim a global named metadata node for the output object file. It could probably even point to a DIFile so we can preserve some information about whether the path is relative.


If this is meant to name the final object file that's emitted - perhaps it shouldn't be in metadata at all. The Split-DWARF DWO file name is similar: it must name the actual file that was emitted - and isn't related to the original modules that may've been generated. This data is passed down through an MCOption, if I recall correctly.


https://reviews.llvm.org/D43002





More information about the llvm-commits mailing list