[PATCH] Fix for LLVM debug build failure on Windows + MSVC2010SP1

Manuel Klimek klimek at google.com
Thu Aug 28 07:44:14 PDT 2014


On Fri Jun 07 2013 at 7:29:51 PM Aaron Ballman <aaron at aaronballman.com>

> On Fri, Jun 7, 2013 at 1:20 PM, Manish Verma <Manish.Verma at arm.com> wrote:
> > Hi Aaron,
> >
> > I checked that on Linux the size of ASTMatchers/Dynamic/CMakeFiles/
> clangDynamicASTMatchers.dir/Registry.cpp.o
> > is 34M and number of sections generated is 36986.
> >
> > Both, MSVC and mingw-gcc fails to build this file on Windows. I think
> > we should either fix the source in Registry.cpp or add /bigobj option
> > to build (the debug variant of) LLVM on Windows.
> I think we should investigate what "fixing" the file would be.
> Looking at Registry.cpp, it doesn't seem overly reasonable that we add
> 37000 sections to the object file.  I have to imagine this has some
> effect on link time as well...
> Nothing obviously jumps out at me as to what is causing those sections
> to be generated.  Are we even sure the sections are desired?  I'll
> admit that I don't know...

This is basically a parser generator written in template metaprogramming,
so it's definitely expected for this to be somewhat large.

> Thanks!
> ~Aaron
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140828/98cba01c/attachment.html>

More information about the llvm-commits mailing list