summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-03-07 22:40:37 +0000
committerEric Christopher <echristo@gmail.com>2014-03-07 22:40:37 +0000
commit096eaf857e5be2648cae2c4254b0da52ff83d1c3 (patch)
treeb82383a40f79e35e69052eff6f3ec1582943205e /include/llvm/CodeGen
parenta8d9fe22489601689d3757a6c9f4eadfeba729c7 (diff)
downloadllvm-096eaf857e5be2648cae2c4254b0da52ff83d1c3.tar.gz
llvm-096eaf857e5be2648cae2c4254b0da52ff83d1c3.tar.bz2
llvm-096eaf857e5be2648cae2c4254b0da52ff83d1c3.tar.xz
Two part patch:
First: refactor out the emission of entries into the .debug_loc section into its own routine. Second: add a new class ByteStreamer that can be used to either emit using an AsmPrinter or hash using DIEHash the series of bytes that would be emitted. Use this in all of the location emission routines for the .debug_loc section. No functional change intended outside of a few additional comments in verbose assembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 939324976d..56dae2c514 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -24,6 +24,7 @@
namespace llvm {
class AsmPrinterHandler;
class BlockAddress;
+ class ByteStreamer;
class GCStrategy;
class Constant;
class ConstantArray;
@@ -429,7 +430,7 @@ namespace llvm {
virtual unsigned getISAEncoding() { return 0; }
/// EmitDwarfRegOp - Emit dwarf register operation.
- virtual void EmitDwarfRegOp(const MachineLocation &MLoc,
+ virtual void EmitDwarfRegOp(ByteStreamer &BS, const MachineLocation &MLoc,
bool Indirect) const;
//===------------------------------------------------------------------===//