<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2015-07-10 16:37 GMT+02:00 Tom Stellard <span dir="ltr"><<a href="mailto:tom@stellard.net" target="_blank">tom@stellard.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
You also need to teach clang to map the triple to your<br>
TargetInfo implementation. See AllocateTarget()  in lib/Basic/Targets.cpp<br>
<span class="HOEnZb"></span></blockquote><div><br></div><div>Good catch.</div><div>clang is now generating asm files for my target.</div><div>Although llc works, llvm-mc is not finished yet, so it breaks.</div><div><br></div><div>Is there a reason clang generates asm then object files, instead of going internaly to MCInst then object file ?</div><div>And can I force it to do so ?</div><div>I did not find the appropriate option or hook in class ToolChain ...</div><div><br></div><div>--</div><div>Fred</div></div></div></div>