DebugInfo: Use MC line table file entry uniquing for non-asm input as well.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Mar 2014 18:13:58 +0000 (18:13 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Mar 2014 18:13:58 +0000 (18:13 +0000)
commitdaeeb3737339913554f3c5dd822be5108b807cd6
tree93d693dec3899be22979016ebeeddc8eada4fb70
parent03a3f643b1b7c7ca1d413f0d7bd2e4c89fe40a56
DebugInfo: Use MC line table file entry uniquing for non-asm input as well.

See r204027 for the precursor to this that applied to asm debug info.

This required some non-obvious API changes to handle the case of asm
output (we never go asm->asm so this didn't come up in r204027): the
modification of the file/directory name by MCDwarfLineTableHeader needed
to be reflected in the MCAsmStreamer caller so it could print the
appropriate .file directive, so those StringRef parameters are now
non-const ref (in/out) parameters rather than just const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204069 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCDwarf.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCDwarf.cpp