Skip to content
  • Sebastian Redl's avatar
    CodeGen support for global variables of type std::initializer_list<X>. · 4a7eab25
    Sebastian Redl authored
    This emits a backing array with internal linkage and fills it with data,
    then has the initializer_list point at the array. Dynamic initialization
    and global destructors are correctly supported.
    
    What doesn't work is nested initializer_lists. I have no idea how to
    get them to work, either. However, these should be very rare, and so
    I'll just call it a known bug and declare generalized initializers
    DONE!
    
    llvm-svn: 151457
    4a7eab25
Loading