projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efb9f7
)
llvm-readobj: Fix an unused variable after r241764
author
Justin Bogner
<mail@justinbogner.com>
Thu, 9 Jul 2015 04:27:36 +0000
(
04:27
+0000)
committer
Justin Bogner
<mail@justinbogner.com>
Thu, 9 Jul 2015 04:27:36 +0000
(
04:27
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241783
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-readobj/COFFDumper.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-readobj/COFFDumper.cpp
b/tools/llvm-readobj/COFFDumper.cpp
index c6ff1c4dd21fa0fd174bd6e002e44379ea297e42..ccb542e37e5af6b940c7e33a4449e0b1cc960907 100644
(file)
--- a/
tools/llvm-readobj/COFFDumper.cpp
+++ b/
tools/llvm-readobj/COFFDumper.cpp
@@
-597,8
+597,9
@@
void COFFDumper::printCodeViewDebugInfo(const SectionRef &Section) {
// in the line table. The filename string is accessed using double
// indirection to the string table subsection using the index subsection.
uint32_t OffsetInIndex = DE.getU32(&Offset),
- SegmentLength = DE.getU32(&Offset),
- FullSegmentSize = DE.getU32(&Offset);
+ SegmentLength = DE.getU32(&Offset);
+ Offset += sizeof(uint32_t); // Skip FullSegmentSize
+
uint32_t FilenameOffset;
{
DataExtractor SDE(CVFileIndexToStringOffsetTable, true, 4);