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:
2bf6a12
)
COFF: Add an assertion. NFC.
author
Rui Ueyama
<ruiu@google.com>
Sun, 14 Jun 2015 22:01:39 +0000
(22:01 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Sun, 14 Jun 2015 22:01:39 +0000
(22:01 +0000)
r239458 changed callee side of this function, so Live can never be
true when this function is called.
llvm-svn: 239705
lld/COFF/Chunks.cpp
patch
|
blob
|
history
diff --git
a/lld/COFF/Chunks.cpp
b/lld/COFF/Chunks.cpp
index
cc7e724
..
72fd1e9
100644
(file)
--- a/
lld/COFF/Chunks.cpp
+++ b/
lld/COFF/Chunks.cpp
@@
-64,8
+64,7
@@
void SectionChunk::writeTo(uint8_t *Buf) {
}
void SectionChunk::mark() {
- if (Live)
- return;
+ assert(!Live);
Live = true;
// Mark all symbols listed in the relocation table for this section.