<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 16, 2017 at 3:06 PM Spyridoula Gravani 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">sgravani marked 4 inline comments as done.<br>
sgravani added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp:290-293<br>
+  if (!AppleNames.extract()) {<br>
+    OS << "error: cannot extract .apple_names accelerator table\n";<br>
+    return false;<br>
+  }<br>
----------------<br>
dblaikie wrote:<br>
> Is this error produced when the section is not present? Is that the right behavior/does this need an error in that case?<br>
In such a case, we should not have any output message.<br>
Thanks for noticing! fixed it in new commit.<br></blockquote><div><br>Did you include a test case? (did you mean an actual commit, or update to this review - I didn't check if this has already been submitted. If it's an actual commit, it's helpful to have the revision number here in the thread for reference)<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
================<br>
Comment at: llvm/trunk/lib/DebugInfo/DWARF/DWARFVerifier.cpp:310<br>
+  }<br>
+  return NumAppleNamesErrors == 0;<br>
+}<br>
----------------<br>
dblaikie wrote:<br>
> Probably use a boolean flag if that's the only thing that matters? ("HasErrors"?)<br>
I prefer to stay consistent with the naming in the other handle[section] functions in the class.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D34177" rel="noreferrer" target="_blank">https://reviews.llvm.org/D34177</a><br>
<br>
<br>
<br>
</blockquote></div></div>