<div dir="ltr">Greg/Pavel, does the latest revision look good to you? Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 18, 2018 at 10:31 AM, Leonard Mosescu via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">lemo marked an inline comment as done.<br>
lemo added a comment.<br>
<span class=""><br>
In <a href="https://reviews.llvm.org/D45700#1070491" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D45700#1070491</a>, @amccarth wrote:<br>
<br>
> LGTM, but consider highlighting the side effect to `target` when the factory makes a Placeholder module.<br>
<br>
<br>
</span>Good observation: taking a step back, the factory introduces too much coupling, especially if we want to extend this placeholder module approach to other uses. Because of this, I reverted back to the standalone PlaceholderModule::<wbr>CreateImageSection() approach. Thanks Adrian!<br>
<span class=""><br>
<br>
<br>
================<br>
Comment at: source/Plugins/Process/<wbr>minidump/ProcessMinidump.cpp:<wbr>70<br>
+  // Creates a synthetic module section covering the whole module image<br>
+  void CreateImageSection(const MinidumpModule *module, Target& target) {<br>
+    const ConstString section_name(".module_image");<br>
----------------<br>
</span><span class="">amccarth wrote:<br>
> I didn't notice before that target is a non-const ref.  Maybe the comment should explain why target is modified (and/or maybe in PlaceholderModule::Create).<br>
</span>Updated the function comment. This is similar to how other places set the section load address (ex. ObjectFileELF::SetLoadAddress)<br>
<br>
<br>
<a href="https://reviews.llvm.org/D45700" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D45700</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>