DebugInfo: Move getOrCreateSourceID from DwarfDebug to DwarfCompileUnit
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Mar 2014 23:53:25 +0000 (23:53 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 17 Mar 2014 23:53:25 +0000 (23:53 +0000)
commit1881227389bfb5a39bd47ccc84504d8d81031bf5
tree0aba04c12c5b25fda9549cd86433723385a367fc
parent2879a6caa8d1146946e5c5287d3ff905a2da66bd
DebugInfo: Move getOrCreateSourceID from DwarfDebug to DwarfCompileUnit

We still do a few lookups into the line table mapping in MCContext that
could be factored out into a single lookup (rather than looking it up
once for the table label, once to set the compilation unit, once for
each time we need a file ID, etc... ) but assembly output complicates
that somewhat as we still need a virtual dispatch back to the
MCAsmStreamer in that case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204092 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h