Bug 1414636 - Rename the 'register' variable to silent a warning r=jseward
authorSylvestre Ledru <sledru@mozilla.com>
Sun, 05 Nov 2017 17:31:09 +0100
changeset 444015 e47ba5950c9ce450b2c5df03cc5ee02dd9815816
parent 444014 18f007118b1cc0ec1b618a430c9f1801fe2a1954
child 444016 6203d3f7c36df8dca1c0a0baf0efbad9137ea7bc
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjseward
bugs1414636
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1414636 - Rename the 'register' variable to silent a warning r=jseward MozReview-Commit-ID: 7gUn991qRzI
tools/profiler/lul/LulDwarf.cpp
--- a/tools/profiler/lul/LulDwarf.cpp
+++ b/tools/profiler/lul/LulDwarf.cpp
@@ -287,21 +287,21 @@ uint64 ByteReader::ReadEncodedPointer(co
 // except that we need instances to be EqualityComparable, too.
 //
 // This could logically be nested within State, but then the qualified names
 // get horrendous.
 class CallFrameInfo::Rule {
  public:
   virtual ~Rule() { }
 
-  // Tell HANDLER that, at ADDRESS in the program, REGISTER can be
-  // recovered using this rule. If REGISTER is kCFARegister, then this rule
+  // Tell HANDLER that, at ADDRESS in the program, REG can be
+  // recovered using this rule. If REG is kCFARegister, then this rule
   // describes how to compute the canonical frame address. Return what the
   // HANDLER member function returned.
-  virtual bool Handle(Handler *handler, uint64 address, int register) const = 0;
+  virtual bool Handle(Handler *handler, uint64 address, int reg) const = 0;
 
   // Equality on rules. We use these to decide which rules we need
   // to report after a DW_CFA_restore_state instruction.
   virtual bool operator==(const Rule &rhs) const = 0;
 
   bool operator!=(const Rule &rhs) const { return ! (*this == rhs); }
 
   // Return a pointer to a copy of this rule.