If the DIUnit has flags passed on it then have DW_AT_producer be a combination of...
authorEric Christopher <echristo@gmail.com>
Wed, 29 Mar 2017 23:34:27 +0000 (23:34 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 29 Mar 2017 23:34:27 +0000 (23:34 +0000)
commit9ea300f08ddb63bd7c11d36c42db15d41bbc1666
treeac5e57761539a503a7e67bc6b3e9357a808a47c4
parentca32517c3a66dde5b89b85a9cc02eb0fab90778a
If the DIUnit has flags passed on it then have DW_AT_producer be a combination of DICompileUnit::Producer and Flags.
The darwin behavior is unchanged and will continue to use DW_AT_APPLE_flags.

Patch by Zhizhou Yang

llvm-svn: 299038
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/debug-info-producer-with-flags.ll [new file with mode: 0644]