What about adding GetMemorySize?<br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 11, 2017 at 10:23 AM Greg Clayton via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">clayborg added a comment.<br>
<br>
I think GetFileSize() should remain the number of bytes of the section on disk and we should add new API if we need to figure out the decompressed size. Or maybe when we get bytes from a compressed section we are expected to always just get the raw bytes, then we check of the section is compressed, and if so, then we call another API on ObjectFile to decompress the data. So I would prefer GetFileSize() to return the file size of the section size in the file and not the decompressed size. Is there a way to make this work?<br>
<br>
<br>
<a href="https://reviews.llvm.org/D40616" rel="noreferrer" target="_blank">https://reviews.llvm.org/D40616</a><br>
<br>
<br>
<br>
</blockquote></div>