summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-11 17:19:01 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-11 17:19:14 +0000
commit5cfce5079bc8218e68b6404b70116aeccc346dd1 (patch)
tree1bc5977743f8a4f5ec68707056ed311f43bd393c /llvm/lib/Support/Timer.cpp
parent49fb4a96e0b79e18aec0ed908676ae4ecaf3084b (diff)
downloadbcm5719-llvm-5cfce5079bc8218e68b6404b70116aeccc346dd1.tar.gz
bcm5719-llvm-5cfce5079bc8218e68b6404b70116aeccc346dd1.zip
Timer - fix shadow variable warnings for Name/Description members. NFC.
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index 10c9b8e0b32..613d2eaae6d 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -91,14 +91,15 @@ static TimerGroup *getDefaultTimerGroup() { return &*DefaultTimerGroup; }
// Timer Implementation
//===----------------------------------------------------------------------===//
-void Timer::init(StringRef Name, StringRef Description) {
- init(Name, Description, *getDefaultTimerGroup());
+void Timer::init(StringRef TimerName, StringRef TimerDescription) {
+ init(TimerName, TimerDescription, *getDefaultTimerGroup());
}
-void Timer::init(StringRef Name, StringRef Description, TimerGroup &tg) {
+void Timer::init(StringRef TimerName, StringRef TimerDescription,
+ TimerGroup &tg) {
assert(!TG && "Timer already initialized");
- this->Name.assign(Name.begin(), Name.end());
- this->Description.assign(Description.begin(), Description.end());
+ Name.assign(TimerName.begin(), TimerName.end());
+ Description.assign(TimerDescription.begin(), TimerDescription.end());
Running = Triggered = false;
TG = &tg;
TG->addTimer(*this);
OpenPOWER on IntegriCloud