projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cda4f8
)
[lld] Fix small error in previous commit
author
Amy Huang
<akhuang@google.com>
Sat, 18 Sep 2021 00:43:28 +0000
(17:43 -0700)
committer
Amy Huang
<akhuang@google.com>
Sat, 18 Sep 2021 00:47:21 +0000
(17:47 -0700)
6f7483b1ece4747f2aafe4baa05fc07e7dc9ed9d
.
lld/Common/Timer.cpp
patch
|
blob
|
history
diff --git
a/lld/Common/Timer.cpp
b/lld/Common/Timer.cpp
index
8a2210f
..
40fecd8
100644
(file)
--- a/
lld/Common/Timer.cpp
+++ b/
lld/Common/Timer.cpp
@@
-26,9
+26,9
@@
void ScopedTimer::stop() {
ScopedTimer::~ScopedTimer() { stop(); }
-Timer::Timer(llvm::StringRef name) :
name(std::string(name)), total(0
) {}
-Timer::Timer(llvm::StringRef name, Timer &parent)
:
-
name(std::string(name)), total(0
) {
+Timer::Timer(llvm::StringRef name) :
total(0), name(std::string(name)
) {}
+Timer::Timer(llvm::StringRef name, Timer &parent)
+
: total(0), name(std::string(name)
) {
parent.children.push_back(this);
}