[PATCH] D105916: [AsmPrinter][CallGraphSection] Emit call graph section

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 18 14:25:06 PDT 2021


MaskRay added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/AsmPrinter.h:204
+
+  DenseMap<Function *, FunctionInfo> FunctionLabels;
+
----------------
unstable iteration order. may consider MapVector https://llvm.org/docs/ProgrammersManual.html#llvm-adt-mapvector-h


================
Comment at: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:1266
+
+  for (const auto &El : FunctionLabels) {
+    const auto &Func = El.first;
----------------
unstable iteration order


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105916/new/

https://reviews.llvm.org/D105916



More information about the llvm-commits mailing list