<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 27, 2017 at 8:11 AM Paul Robinson 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">probinson added inline comments.<br>
<br>
<br>
================<br>
Comment at: lib/DebugInfo/DWARF/DWARFDie.cpp:241<br>
+    uint64_t LowPC, HighPC, Index;<br>
+    if (Die.getLowAndHighPC(LowPC, HighPC, Index))<br>
+      OS << format("0x%016" PRIx64, HighPC);<br>
----------------<br>
dblaikie wrote:<br>
> It seems unfortunate that this searches for the low pc when we already have the form/attribute in formValue.<br>
><br>
> What happens if a buggy DIE has two LowPCs? This might erroneously print the same one twice? (I assume DWARF supports, in general, multiple instances of the same attribute in a DIE? or is that buggy enough to have been detected earlier?)<br>
You can't repeat the same attribute in the same DIE, that's invalid DWARF.  I don't know whether the verifier checks for that.<br></blockquote><div><br>Ah, rightio - well, just a (likely quite minor) perf issue then. Thanks for clarifying :)<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D40317" rel="noreferrer" target="_blank">https://reviews.llvm.org/D40317</a><br>
<br>
<br>
<br>
</blockquote></div></div>