[llvm-commits] [vmkit] r49523 - /vmkit/trunk/lib/JnJVM/VMCore/JavaJITInitialise.cpp

Owen Anderson resistor at mac.com
Fri Apr 11 00:52:33 PDT 2008

On Apr 11, 2008, at 2:22 AM, Nicolas Geoffray wrote:
>   LongAconsLLVM = Function::Create(type, GlobalValue::ExternalLinkage,
> -                     "  
> _ZN5jnjvm9ArrayLong5aconsEiPNS_10ClassArrayEPNS_5JnjvmE",
> +                      
> "_ZN5jnjvm9ArrayLong5aconsEiPNS_10ClassArrayEPNS_5JnjvmE",
>                      module);
>   ObjectAconsLLVM = Function::Create(type,  
> GlobalValue::ExternalLinkage,

For the record that's, um, kind of horrible.  Could you perhaps make a  
wrapper function in extern "C" that calls into the Array one?  That  
way you wouldn't have to encode the C++ name mangling, and perhaps  
make it more portable to Win32, or anything that doesn't use Itanium  
ABI mangling.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080411/79945b68/attachment.bin>

More information about the llvm-commits mailing list