diff options
author | Nilanjana Basu <nilanjana.basu87@gmail.com> | 2019-07-22 18:22:55 +0000 |
---|---|---|
committer | Nilanjana Basu <nilanjana.basu87@gmail.com> | 2019-07-22 18:22:55 +0000 |
commit | 06b8fe8d030e739367327093768c36e0e9dd2217 (patch) | |
tree | 0e5284a7b35a10977645b52219f6fd4f60408f0e /llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp | |
parent | d9212ef77b927f634b43f30289e75fa3f16df3f0 (diff) | |
download | bcm5719-llvm-06b8fe8d030e739367327093768c36e0e9dd2217.tar.gz bcm5719-llvm-06b8fe8d030e739367327093768c36e0e9dd2217.zip |
Changes to emit CodeView debug info nested type records properly using MCStreamer directives
llvm-svn: 366720
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp b/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp index 2f49474115a..092099bb0a1 100644 --- a/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp +++ b/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp @@ -20,7 +20,6 @@ Error CodeViewRecordIO::beginRecord(Optional<uint32_t> MaxLength) { Limit.MaxLength = MaxLength; Limit.BeginOffset = getCurrentOffset(); Limits.push_back(Limit); - resetStreamedLen(); return Error::success(); } @@ -50,6 +49,7 @@ Error CodeViewRecordIO::endRecord() { Streamer->EmitBytes(BytesSR); --PaddingBytes; } + resetStreamedLen(); } return Error::success(); } |