<div>This patch actaully fixes this error:</div><div>LLVMARMCodeGen.lib(ARMTargetMachine.cpp.obj) : error LNK2001: unresolved external symbol "public: virtual unsigned int _<br>_thiscall llvm::ARMTargetAsmInfo<class llvm::TargetAsmInfo>::getInlineAsmLength(char const *)const " (?getInlineAsmLengt<br>
<a href="mailto:h@?$ARMTargetAsmInfo@VTargetAsmInfo@llvm@@@llvm@@UBEIPBD@Z" target="_blank">h@?$ARMTargetAsmInfo@VTargetAsmInfo@llvm@@@llvm@@UBEIPBD@Z</a>)<br>..\..\bin\llc.exe : fatal error LNK1120: 1 unresolved externals</div>
<div> </div><div>Based on MSVC document, it should support EXTERN_TEMPLATE_INSTANTIATION. See the reference link. This acutally fix the build ARM under MSVC-x86. otherwise, there is a link error. <a href="http://msdn.microsoft.com/en-us/library/7y5ca42y.aspx">http://msdn.microsoft.com/en-us/library/7y5ca42y.aspx</a></div>

<div> </div>
<div>I am not sure if this is  the best fix.</div><div><br></div><div><br></div>
<div class="gmail_quote">On Mon, Jun 15, 2009 at 2:04 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>
<div></div>
<div><br>On May 21, 2009, at 5:30 AM, Howard Su wrote:<br><br>> C++ standard (MSVC included) do support template specializations<br>> while it doesn't support extern template specializations. So the<br>> following define is wrong to me.<br>

> #ifdef __GNUC__<br>> #define EXTERN_TEMPLATE_INSTANTIATION(X) __extension__ extern<br>> template X<br>> #define TEMPLATE_INSTANTIATION(X) template X<br>> #else<br>> #define EXTERN_TEMPLATE_INSTANTIATION(X)<br>

> #define TEMPLATE_INSTANTIATION(X)   <======== wrong, C++ supports<br>> this.<br>> #endif<br>> Please verify.<br><br></div></div>Hi Howard,<br><br>Does this patch actually fix a real problem?<br><br>-Chris<br>

_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>

</blockquote></div><br><br clear="all">
<div></div><br>-- <br>-Howard<br>