<div dir="ltr">Yeah. It would. I think you'll just need to check in old bitcode. Missed what you were trying to accomplish with the test, sorry for the noise.<br><div><br></div><div>-eric</div></div><br><div class="gmail_quote">On Mon, May 4, 2015 at 4:04 PM Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Maybe I’m missing something.<div>Wouldn’t llvm-as always create the new form? In textual IR there is no way to distinguish between a DICompileUnit with a zero DWOId field and one without DWOId field.</div><div><br></div><div></div></div><div style="word-wrap:break-word"><div>-- adrian</div></div><div style="word-wrap:break-word"><div><br><div><blockquote type="cite"><div>On May 4, 2015, at 4:01 PM, Eric Christopher <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>> wrote:</div><br><div><div dir="ltr">You can use llvm-as %s -o - | llvm-dis | FileCheck or something similar.<br><br>-eric<br></div><br><div class="gmail_quote">On Mon, May 4, 2015 at 4:00 PM Adrian Prantl <<a href="mailto:aprantl@apple.com" target="_blank">aprantl@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's the requested autoupgrade code.<br>
<br>
Duncan, is the ad-hoc fashion I implemented this the way to go, or is there a way to better separate the upgrades from the parser?<br>
Also, is there a way to test the autoupgrade without checking in binary bitcode?<br>
<br>
<br>
<a href="http://reviews.llvm.org/D9488" target="_blank">http://reviews.llvm.org/D9488</a><br>
<br>
Files:<br>
  include/llvm/IR/DIBuilder.h<br>
  include/llvm/IR/DebugInfoMetadata.h<br>
  lib/AsmParser/LLParser.cpp<br>
  lib/Bitcode/Reader/BitcodeReader.cpp<br>
  lib/Bitcode/Writer/BitcodeWriter.cpp<br>
  lib/IR/AsmWriter.cpp<br>
  lib/IR/DIBuilder.cpp<br>
  lib/IR/DebugInfoMetadata.cpp<br>
  lib/IR/LLVMContextImpl.h<br>
  test/Assembler/mdcompileunit.ll<br>
  unittests/IR/MetadataTest.cpp<br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
</blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>