Pull r62889 into Dib:

Set DW_AT_APPLE_optimized and DW_AT_APPLE_flags attribute while building
DICompileUnit.

Right now, llvm-gcc does not emit debug info when optimization is ON. However,
emit llvm.dbg.compile_unit and preserve it even when optimization is ON. This
allows DW_AT_APPLE_flags to find its way in final binary.

llvm-svn: 62890
2 files changed
tree: 942292233c01e5965a8508d492bf368c27ccff4d
  1. llvm-gcc-4.2/