This is cool, I was looking into something like this, but hit a little bit of a wall, and then got sidetracked on another project. I was going to use llc to generate COFF object files as opposed to clang. Seems to me llc would give better control over what was generated and would also not require clang to be in the tree.<div>
<br></div><div>Is there any documentation on how to run these tests from windows?<br><div><br></div><div>- Nathan<br><br><div class="gmail_quote">On Wed, Jun 9, 2010 at 3:15 PM, Bigcheese <span dir="ltr"><<a href="mailto:bigcheesegs@gmail.com">bigcheesegs@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="im">On Fri, May 28, 2010 at 4:28 PM, Eli Friedman <<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>> wrote:<br>

> > Any objections for not accepting the patch into LLVM? If none, I'll<br>
> > apply it after the weekend.<br>
><br>
> There should minimally be a bare-bones test to make sure that basic<br>
> COFF writer functionality doesn't crash.  Besides that, I don't see<br>
> any issues.<br>
<br>
</div>I was looking into writing this test for MC based on the MachO tests,<br>
but llvm-mc cannot read .s files as COFF because it simply lacks<br>
support for it. It tries to read everything as MachO.<br>
<br>
I've attached a patch for the test anyway. This includes Nathan's<br>
dump-coff.py script in the proper location for the test. I generated<br>
the .s file with "echo int main(){} | clang -O3 -S -x c -o - -". And<br>
then I generated the CHECK lines by running "echo int main(){} | clang<br>
-O3 -c -x c -o temp.o - && dump-coff temp.o".<br>
<br>
- Michael Spencer<br>
<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>
<br></blockquote></div><br></div></div>