[PATCH] D97881: [CodeView] Truncate Long Type Names With A Hash
Brock Wyma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 05:41:14 PST 2021
bwyma added inline comments.
================
Comment at: llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:186-187
+
+ StringRef N = NameB;
+ StringRef U = UniqueB;
+ error(IO.mapStringZ(N));
----------------
rnk wrote:
> Are these locals necessary? We should be able to map NameB and UniqueB directly.
The mapStringZ() calls perform both reading and writing, requiring a StringRef& (string-ref-reference). Its ugly and I welcome any suggestions to improve it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97881/new/
https://reviews.llvm.org/D97881
More information about the llvm-commits
mailing list