[PATCH] D154092: Monospace font for control flow dot graphs

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 21:06:44 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8ee909640800: Monospace font for CFG dot graphs (authored by mark-sed, committed by apilipenko).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154092

Files:
  llvm/include/llvm/Analysis/CFGPrinter.h


Index: llvm/include/llvm/Analysis/CFGPrinter.h
===================================================================
--- llvm/include/llvm/Analysis/CFGPrinter.h
+++ llvm/include/llvm/Analysis/CFGPrinter.h
@@ -308,7 +308,8 @@
                                 : (getHeatColor(1));
 
     std::string Attrs = "color=\"" + EdgeColor + "ff\", style=filled," +
-                        " fillcolor=\"" + Color + "70\"";
+                        " fillcolor=\"" + Color + "70\"" +
+                        " fontname=\"Courier\"";
     return Attrs;
   }
   bool isNodeHidden(const BasicBlock *Node, const DOTFuncInfo *CFGInfo);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154092.550985.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230817/1136aac8/attachment.bin>


More information about the llvm-commits mailing list