[llvm] 8720149 - Remove unused function from print-changed=dot-cfg code

Jamie Schmeiser via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 07:40:59 PDT 2021


Author: Jamie Schmeiser
Date: 2021-11-04T10:40:50-04:00
New Revision: 8720149d9bb17f3059e18a8170dc0175104f7c19

URL: https://github.com/llvm/llvm-project/commit/8720149d9bb17f3059e18a8170dc0175104f7c19
DIFF: https://github.com/llvm/llvm-project/commit/8720149d9bb17f3059e18a8170dc0175104f7c19.diff

LOG: 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 <schmeise at ca.ibm.com>
Reviewed By: uabelho(Mikael Holmen)
Differential Revision: https://reviews.llvm.org/D113188

Added: 
    

Modified: 
    llvm/lib/Passes/StandardInstrumentations.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp
index 0c344cdf3117..8e6be6730ea4 100644
--- a/llvm/lib/Passes/StandardInstrumentations.cpp
+++ b/llvm/lib/Passes/StandardInstrumentations.cpp
@@ -1553,8 +1553,6 @@ class DotCfgDiff {
 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 @@ std::string DotCfgDiff::colourize(std::string S, IRChangeDiffType T) const {
   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];
 }


        


More information about the llvm-commits mailing list