Rename an argument named "register" to "reg".

This silences a warning in newer versions of clang that complains
about "register" being a deprecated keyword.

Bug: chromium:780692
Change-Id: If354b9b18421e3e910849b385c44207e0ce02590
Reviewed-on: https://chromium-review.googlesource.com/750362
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Peter Collingbourne 2017-11-01 18:27:06 -07:00 committed by Mark Mentovai
parent 7e3c165000
commit 2d85d492ae

View file

@ -1265,12 +1265,12 @@ class CallFrameInfo::Rule {
public: public:
virtual ~Rule() { } virtual ~Rule() { }
// Tell HANDLER that, at ADDRESS in the program, REGISTER can be // Tell HANDLER that, at ADDRESS in the program, REG can be recovered using
// recovered using this rule. If REGISTER is kCFARegister, then this rule // this rule. If REG is kCFARegister, then this rule describes how to compute
// describes how to compute the canonical frame address. Return what the // the canonical frame address. Return what the HANDLER member function
// HANDLER member function returned. // returned.
virtual bool Handle(Handler *handler, virtual bool Handle(Handler *handler,
uint64 address, int register) const = 0; uint64 address, int reg) const = 0;
// Equality on rules. We use these to decide which rules we need // Equality on rules. We use these to decide which rules we need
// to report after a DW_CFA_restore_state instruction. // to report after a DW_CFA_restore_state instruction.