[PATCH] D42148: [CodeView] Speed up type iteration

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 16:46:43 PST 2018


ruiu added inline comments.


================
Comment at: llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp:353-355
+  auto EC = forEachCodeViewRecord<CVType>(
+      Buffer, [this](const CVType &T) { return remapType(T); });
+  return EC;
----------------
nit: you can directly return a return value of forEachCodeViewRecord.


https://reviews.llvm.org/D42148





More information about the llvm-commits mailing list