[LLVMdev] Building lld with Visual Studio 2012 RC

Cesar Mello cmello at gmail.com
Sat Jun 16 16:15:00 PDT 2012


Hi!

I'm trying to build lld Microsoft Visual Studio 2012 RC, but it seems the
bzero function is not available.

Could memset be used instead of bzero? Or maybe define a bzero for msvc
using memset.

For example:

      // in-memory matches on-disk, so copy first fields followed by path
      ::memcpy(to, (uint8_t*)&cmd, 12);
      ::memcpy(&to[12], _name.data(), _name.size());
      ::bzero(&to[12+_name.size()], cmdsize-(12+_name.size()));

The bzero line could be changed to:

  ::memset(&to[12+_name.size()], 0, cmdsize-(12+_name.size()));

Thanks a lot for the attention and congratulations for the great work!!!

Best regards
Mello
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120616/45ffc5f1/attachment.html>


More information about the llvm-dev mailing list