diff options
author | Zachary Turner <zturner@google.com> | 2017-05-30 17:13:33 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-05-30 17:13:33 +0000 |
commit | 591312c5c1a133949285dde012d8cf373ab31b12 (patch) | |
tree | 018149cd6fdc99281c57823add5f228604dbaa93 /llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp | |
parent | 5fd588be34ce1fe53e88590c8a8781ec973f45a0 (diff) | |
download | llvm-591312c5c1a133949285dde012d8cf373ab31b12.zip llvm-591312c5c1a133949285dde012d8cf373ab31b12.tar.gz llvm-591312c5c1a133949285dde012d8cf373ab31b12.tar.bz2 |
[CodeView] Add more DebugSubsection implementations.
This adds implementations for Symbols and FrameData, and renames
the existing codeview::StringTable class to conform to the
DebugSectionStringTable convention.
llvm-svn: 304222
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp index c973845..2fce06c 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp @@ -11,8 +11,8 @@ #include "llvm/DebugInfo/CodeView/CodeViewError.h" #include "llvm/DebugInfo/CodeView/DebugChecksumsSubsection.h" +#include "llvm/DebugInfo/CodeView/DebugStringTableSubsection.h" #include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h" -#include "llvm/DebugInfo/CodeView/StringTable.h" using namespace llvm; using namespace llvm::codeview; @@ -68,7 +68,7 @@ bool DebugLinesSubsectionRef::hasColumnInfo() const { } DebugLinesSubsection::DebugLinesSubsection(DebugChecksumsSubsection &Checksums, - StringTable &Strings) + DebugStringTableSubsection &Strings) : DebugSubsection(DebugSubsectionKind::Lines), Checksums(Checksums) {} void DebugLinesSubsection::createBlock(StringRef FileName) { @@ -99,7 +99,7 @@ void DebugLinesSubsection::addLineAndColumnInfo(uint32_t Offset, B.Columns.push_back(CNE); } -Error DebugLinesSubsection::commit(BinaryStreamWriter &Writer) { +Error DebugLinesSubsection::commit(BinaryStreamWriter &Writer) const { LineFragmentHeader Header; Header.CodeSize = CodeSize; Header.Flags = hasColumnInfo() ? LF_HaveColumns : 0; @@ -133,7 +133,7 @@ Error DebugLinesSubsection::commit(BinaryStreamWriter &Writer) { return Error::success(); } -uint32_t DebugLinesSubsection::calculateSerializedLength() { +uint32_t DebugLinesSubsection::calculateSerializedSize() const { uint32_t Size = sizeof(LineFragmentHeader); for (const auto &B : Blocks) { Size += sizeof(LineBlockFragmentHeader); |