<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 4:11 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@gmail.com" target="_blank" class="cremed">chandlerc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
<br>
================<br>
Comment at: include/llvm/Support/Dwarf.h:957<br>
@@ +956,3 @@<br>
+/// Return Dwarf Version by checking module flags.<br>
+inline unsigned getDwarfVersionFromModule(const Module *M) {<br>
+  Value *Val = M->getModuleFlag("Dwarf Version");<br>
----------------<br>
</div><div class="">David Blaikie wrote:<br>
> This might be worth being out of line, maybe. Not a big deal.<br>
</div>As Eric was indicating, this can't be in Support. I think this should be a method on Module personally. It needs to be somewhere in the IR library at least.<br>
<br></blockquote><div>I'm not quite sure what to do with the default value, however. Ultimately, I need to return llvm::dwarf::DWARF_VERSION, which ties the IR/Module.cpp with Support/Dwarf.h.</div><div><br></div><div>
<br></div><div>Diego.</div></div></div></div>