We want the dwarf AT_producer for assembly source files to match clang's
authorKevin Enderby <enderby@apple.com>
Wed, 16 Jan 2013 17:46:23 +0000 (17:46 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 16 Jan 2013 17:46:23 +0000 (17:46 +0000)
commite82ada6983858183ac591f7147b685e5bf16995b
treef569df7072422485d7fab8fb366d3ecee86309d8
parent8078a5a4497ee2b5a18e5694557fe61a9082755e
We want the dwarf AT_producer for assembly source files to match clang's
AT_producer.  Which includes clang's version information so we can tell
which version of the compiler was used.

This is the first of two steps to allow us to do that.  This is the llvm-mc
change to provide a method to set the AT_producer string.  The second step,
coming soon to a clang near you, will have the clang driver pass the value
of getClangFullVersion() via an flag when invoking the integrated assembler
on assembly source files.

rdar://12955296

llvm-svn: 172630
llvm/include/llvm/MC/MCContext.h
llvm/lib/MC/MCDwarf.cpp
llvm/test/MC/MachO/gen-dwarf-producer.s [new file with mode: 0644]
llvm/tools/llvm-mc/llvm-mc.cpp