<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 4:46 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank" class="cremed">echristo@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="HOEnZb"><div class="h5">On Thu, Apr 17, 2014 at 1:45 PM, Diego Novillo <<a href="mailto:dnovillo@google.com" class="cremed">dnovillo@google.com</a>> wrote:<br>

><br>
><br>
><br>
> On Thu, Apr 17, 2014 at 4:11 PM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com" class="cremed">chandlerc@gmail.com</a>><br>
> wrote:<br>
>><br>
>><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>
>> David Blaikie wrote:<br>
>> > This might be worth being out of line, maybe. Not a big deal.<br>
>> As Eric was indicating, this can't be in Support. I think this should be a<br>
>> method on Module personally. It needs to be somewhere in the IR library at<br>
>> least.<br>
>><br>
> I'm not quite sure what to do with the default value, however. Ultimately, I<br>
> need to return llvm::dwarf::DWARF_VERSION, which ties the IR/Module.cpp with<br>
> Support/Dwarf.h.<br>
><br>
<br>
</div></div>IR should be able to depend upon support all it wants. :)<br>
</blockquote></div><br></div><div class="gmail_extra">Oh, right. It was the other way around that gave you hives. Sorry.</div></div>