[lld] r241388 - Revert "COFF: Do not use VirtualSize section header field for directive sections."
Rui Ueyama
ruiu at google.com
Fri Jul 3 20:27:46 PDT 2015
Author: ruiu
Date: Fri Jul 3 22:27:46 2015
New Revision: 241388
URL: http://llvm.org/viewvc/llvm-project?rev=241388&view=rev
Log:
Revert "COFF: Do not use VirtualSize section header field for directive sections."
This reverts commit r241386 because the issue is addressed in LLVM (r241387).
Modified:
lld/trunk/COFF/InputFiles.cpp
Modified: lld/trunk/COFF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/InputFiles.cpp?rev=241388&r1=241387&r2=241388&view=diff
==============================================================================
--- lld/trunk/COFF/InputFiles.cpp (original)
+++ lld/trunk/COFF/InputFiles.cpp Fri Jul 3 22:27:46 2015
@@ -136,8 +136,7 @@ std::error_code ObjectFile::initializeCh
if (Name == ".drectve") {
ArrayRef<uint8_t> Data;
COFFObj->getSectionContents(Sec, Data);
- Directives = std::string((const char *)Data.data(),
- Sec->SizeOfRawData);
+ Directives = std::string((const char *)Data.data(), Data.size());
continue;
}
if (Name.startswith(".debug"))
More information about the llvm-commits
mailing list