NFC: DebugInfo: Refactor debug_loc/loclist emission into a common function
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Dec 2019 00:37:52 +0000 (16:37 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 13 Dec 2019 00:39:12 +0000 (16:39 -0800)
commit20e06a28dac65a68bfd906d703e980a8212f6187
treec108125986d0154e07315dc5c1acbf76b2056e23
parentb7eb30d48131c0b42cf5fa5bf866e846959876c2
NFC: DebugInfo: Refactor debug_loc/loclist emission into a common function

(except for v4 loclists, which are sufficiently different to not fit
well in this generic implementation)

In subsequent patches I intend to refactor the DebugLoc and ranges data
structures to be more similar so I can common more of the implementation
here.
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h