<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span style="color: rgb(33, 33, 33); font-size: 12pt;">>I think it's about the same if it returns 0 or Optional<uint64_t> - the lack of an offset and offset 0 are basically the same thing, so >far as I can tell. So it's not even like 0 is a special value,
 really.</span><br>
</p>
<div style="color: rgb(33, 33, 33);">
<div>
<div dir="ltr">><br>
>George - reckon we could/should do this up at the caller instead, though? SectionRef does have queries for compressed, text, >data, bss, virtual, bitcode - can we deduce allocated section from any of those, or worth adding it there?<br>
><br>
>I'm not too fussed/don't know well enough, but just throwing around some ideas. (Adrian? Duncan? Eric? *shrug*)<br>
><br>
>Eh - how about we go with what you've got for now. Can revisit it later if we want to.</div>
<br>
Usecase we have in LLD is a bit specific it seems. <span style="font-size: 12pt;">F</span><span style="font-size: 12pt;">or now I would just </span><span style="font-size: 12pt;">go with that </span><span style="font-size: 12pt;">minor local fix</span><span style="font-size: 12pt;">.</span></div>
<div><br>
</div>
<div>I think DWARFContextInMemory​ do a bit too much for our LLD use case (building .gdb_index).</div>
<div>It does not really need to process all the relocations and uncompress debug sections again for example. </div>
<div>So <span style="font-size: 12pt;">I expect we </span><span style="font-size: 12pt;">will </span><span style="font-size: 12pt;">want to</span><span style="font-size: 12pt;"> revisit</span><span style="font-size: 12pt;">
</span><span style="font-size: 12pt;">its functionality anyways soon and think of extending/tweaking pa</span><span style="font-size: 12pt;">rsers</span><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">API probably</span><span style="font-size: 12pt;">.</span></div>
<div><br>
</div>
<div>George.<br>
</div>
</div>
</body>
</html>