<div dir="ltr">Backwards compatibility with the LLVM IR textual format is not guaranteed, while bitcode compatibility is. You can probably load up that old IR by assembling it with an old llvm-as and loading the bitcode in new clang.<div><a href="http://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compatibility">http://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compatibility</a><br></div><div><br></div><div>That said, if it's just a matter of skipping over the 'metadata' token, it would be nice to let old IR assemble.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 19, 2014 at 10:59 AM, Tom Stellard <span dir="ltr"><<a href="mailto:tom@stellard.net" target="_blank">tom@stellard.net</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Types were recently removed from metadata in the IR, which means older<br>
LLVM IR code with metadata won't compile. Was this intentional?<br>
Is there a practical way to maintain compatibility with older LLVM IR?<br>
<br>
Thanks,<br>
Tom<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div></div>