OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2f1cd8
)
Sample Profiling - Remove useless asserts. NFC.
author
Diego Novillo
<dnovillo@google.com>
Fri, 16 Oct 2015 13:54:52 +0000
(13:54 +0000)
committer
Diego Novillo
<dnovillo@google.com>
Fri, 16 Oct 2015 13:54:52 +0000
(13:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250513
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ProfileData/SampleProf.h
patch
|
blob
|
history
diff --git
a/include/llvm/ProfileData/SampleProf.h
b/include/llvm/ProfileData/SampleProf.h
index
b36b328
..
e46407b
100644
(file)
--- a/
include/llvm/ProfileData/SampleProf.h
+++ b/
include/llvm/ProfileData/SampleProf.h
@@
-215,12
+215,10
@@
public:
void addHeadSamples(uint64_t Num) { TotalHeadSamples += Num; }
void addBodySamples(uint32_t LineOffset, uint32_t Discriminator,
uint64_t Num) {
- assert(LineOffset >= 0);
BodySamples[LineLocation(LineOffset, Discriminator)].addSamples(Num);
}
void addCalledTargetSamples(uint32_t LineOffset, uint32_t Discriminator,
std::string FName, uint64_t Num) {
- assert(LineOffset >= 0);
BodySamples[LineLocation(LineOffset, Discriminator)].addCalledTarget(FName,
Num);
}