Previously the code split the string at the first '<', which
incorrectly truncated names like operator<.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | ||
---|---|---|
388–389 | I had to go remind myself why we don't do this in the frontend. The reason is that we put the template arguments in the S_GPROC32 symbol records, but we don't put them in the LF_FUNC_ID records. Can you update this comment to explain why we have to throw away the template arguments here? If we really wanted this to be super clean, we could change DISubprogram to split the name into the basename and the template argument list string, but that seems unnecessary. |
I had to go remind myself why we don't do this in the frontend. The reason is that we put the template arguments in the S_GPROC32 symbol records, but we don't put them in the LF_FUNC_ID records. Can you update this comment to explain why we have to throw away the template arguments here? If we really wanted this to be super clean, we could change DISubprogram to split the name into the basename and the template argument list string, but that seems unnecessary.