[PATCH] D113188: Remove unused function from print-changed=dot-cfg code
Jamie Schmeiser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 07:16:15 PDT 2021
jamieschmeiser created this revision.
jamieschmeiser added a reviewer: uabelho.
Herald added a subscriber: hiraditya.
jamieschmeiser requested review of this revision.
Herald added a project: LLVM.
Remove unused function from print-changed=dot-cfg code to silence a gcc compiler warning.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113188
Files:
llvm/lib/Passes/StandardInstrumentations.cpp
Index: llvm/lib/Passes/StandardInstrumentations.cpp
===================================================================
--- llvm/lib/Passes/StandardInstrumentations.cpp
+++ llvm/lib/Passes/StandardInstrumentations.cpp
@@ -1553,8 +1553,6 @@
protected:
// Return the string surrounded by HTML to make it the appropriate colour.
std::string colourize(std::string S, IRChangeDiffType T) const;
- // Return the string containing the colour to use as a Dot attribute.
- std::string attribute(IRChangeDiffType T) const;
void createNode(StringRef Label, const BlockDataT<DCData> &BD,
IRChangeDiffType T) {
@@ -1646,10 +1644,6 @@
return "<FONT COLOR=\"" + Colours[T] + "\">" + S + "</FONT>";
}
-std::string DotCfgDiff::attribute(IRChangeDiffType T) const {
- return "color=" + Colours[T];
-}
-
std::string DotCfgDiffDisplayGraph::attribute(IRChangeDiffType T) const {
return "color=" + Colours[T];
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113188.384743.patch
Type: text/x-patch
Size: 936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211104/fb58c74f/attachment-0001.bin>
More information about the llvm-commits
mailing list