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)
commit75c9b9384f50e9387f24dd7ce6af403cbda6d19a
tree61a2d413c5737f6f53711be35c108d07f8f1241b
parentfbb662f840c2f76988ff9f3f152695632cfc71be
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172630 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
lib/MC/MCDwarf.cpp
test/MC/MachO/gen-dwarf-producer.s [new file with mode: 0644]
tools/llvm-mc/llvm-mc.cpp