Skip to content

Commit 8720149

Browse files
Remove unused function from print-changed=dot-cfg code
Summary: Remove unused function from print-changed=dot-cfg code to silence a gcc compiler warning. Author: Jamie Schmeiser <[email protected]> Reviewed By: uabelho(Mikael Holmen) Differential Revision: https://reviews.llvm.org/D113188
1 parent 1ea4296 commit 8720149

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Passes/StandardInstrumentations.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,8 +1553,6 @@ class DotCfgDiff {
15531553
protected:
15541554
// Return the string surrounded by HTML to make it the appropriate colour.
15551555
std::string colourize(std::string S, IRChangeDiffType T) const;
1556-
// Return the string containing the colour to use as a Dot attribute.
1557-
std::string attribute(IRChangeDiffType T) const;
15581556

15591557
void createNode(StringRef Label, const BlockDataT<DCData> &BD,
15601558
IRChangeDiffType T) {
@@ -1646,10 +1644,6 @@ std::string DotCfgDiff::colourize(std::string S, IRChangeDiffType T) const {
16461644
return "<FONT COLOR=\"" + Colours[T] + "\">" + S + "</FONT>";
16471645
}
16481646

1649-
std::string DotCfgDiff::attribute(IRChangeDiffType T) const {
1650-
return "color=" + Colours[T];
1651-
}
1652-
16531647
std::string DotCfgDiffDisplayGraph::attribute(IRChangeDiffType T) const {
16541648
return "color=" + Colours[T];
16551649
}

0 commit comments

Comments
 (0)