summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-12-16 19:25:23 +0000
committerZachary Turner <zturner@google.com>2016-12-16 19:25:23 +0000
commitd0fffd1d1405823e4dc1a4ad16e007e3bdd4bf69 (patch)
tree4a91b07fa45157e47cd0d48f62f5708c6705ff52 /llvm/lib/MC/MCCodeView.cpp
parent242b46aa590d04ef870a1bf2ea611f769bc748d2 (diff)
downloadbcm5719-llvm-d0fffd1d1405823e4dc1a4ad16e007e3bdd4bf69.tar.gz
bcm5719-llvm-d0fffd1d1405823e4dc1a4ad16e007e3bdd4bf69.zip
Revert "[CodeView] Hook CodeViewRecordIO for reading/writing symbols."
This reverts commit r289978, which is failing due to some rebase/merge issues. llvm-svn: 289981
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index 22bdba1ca2b..ac1acc08b0c 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -361,9 +361,7 @@ void CodeViewContext::encodeInlineLineTable(MCAsmLayout &Layout,
// Exit early if our line table would produce an oversized InlineSiteSym
// record. Account for the ChangeCodeLength annotation emitted after the
// loop ends.
- constexpr uint32_t InlineSiteSize = 12;
- constexpr uint32_t AnnotationSize = 8;
- size_t MaxBufferSize = MaxRecordLength - InlineSiteSize - AnnotationSize;
+ size_t MaxBufferSize = MaxRecordLength - sizeof(InlineSiteSym::Hdr) - 8;
if (Buffer.size() >= MaxBufferSize)
break;
OpenPOWER on IntegriCloud