]> granicus.if.org Git - llvm/commitdiff
[MCA] Fix -Wunused-private-field warning after r362933. NFC
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 10 Jun 2019 13:33:54 +0000 (13:33 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 10 Jun 2019 13:33:54 +0000 (13:33 +0000)
This should unbreak the buildbots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362935 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-mca/Views/BottleneckAnalysis.cpp
tools/llvm-mca/Views/BottleneckAnalysis.h

index 1c38cb908313eeedf13ebcd4a2e49122369c429d..c10e47d5165d120cec4fafe86a2aa0030ceb9086 100644 (file)
@@ -212,7 +212,7 @@ void DependencyGraph::addDependency(unsigned From, DependencyEdge &&Dep) {
 BottleneckAnalysis::BottleneckAnalysis(const MCSubtargetInfo &sti,
                                        MCInstPrinter &Printer,
                                        ArrayRef<MCInst> S)
-    : STI(sti), MCIP(Printer), Tracker(STI.getSchedModel()), DG(S.size() * 3),
+    : STI(sti), Tracker(STI.getSchedModel()), DG(S.size() * 3),
       Source(S), TotalCycles(0), PressureIncreasedBecauseOfResources(false),
       PressureIncreasedBecauseOfRegisterDependencies(false),
       PressureIncreasedBecauseOfMemoryDependencies(false),
index c208847fe9f428d4fd24135c4d9600d252adb849..9268e4935c110d5477b6adb697a1c6bb5d94aae7 100644 (file)
@@ -164,7 +164,6 @@ public:
 /// A view that collects and prints a few performance numbers.
 class BottleneckAnalysis : public View {
   const MCSubtargetInfo &STI;
-  MCInstPrinter &MCIP;
   PressureTracker Tracker;
   DependencyGraph DG;
 
@@ -211,7 +210,7 @@ public:
   void printView(raw_ostream &OS) const override;
 
 #ifndef NDEBUG
-  void dump(raw_ostream &OS) const { DG.dump(OS, MCIP); }
+  void dump(raw_ostream &OS, MCInstPrinter &MCIP) const { DG.dump(OS, MCIP); }
 #endif
 };