aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-06-24 21:07:27 +0000
committerEric Christopher <echristo@gmail.com>2013-06-24 21:07:27 +0000
commitf61dbc15750f0b1a9a089ac91e6f5e7235335c25 (patch)
treeb77a9be1d3a0240f0656e4af6e1b4212d0506453 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
parent96fb3a25cb0007f06d22d28c0b9c3503798324f6 (diff)
downloadexternal_llvm-f61dbc15750f0b1a9a089ac91e6f5e7235335c25.zip
external_llvm-f61dbc15750f0b1a9a089ac91e6f5e7235335c25.tar.gz
external_llvm-f61dbc15750f0b1a9a089ac91e6f5e7235335c25.tar.bz2
Use const references instead of pointers to references that are
never modified. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
index 36f5652..6a37080 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
@@ -96,7 +96,7 @@ class CompileUnit {
public:
CompileUnit(unsigned UID, unsigned L, DIE *D, const MDNode *N, AsmPrinter *A,
- DwarfDebug *DW, DwarfUnits *DWU);
+ DwarfDebug *DW, DwarfUnits *DWU);
~CompileUnit();
// Accessors.
@@ -282,7 +282,7 @@ public:
/// (navigating the extra location information encoded in the type) based on
/// the starting location. Add the DWARF information to the die.
///
- void addComplexAddress(DbgVariable *&DV, DIE *Die, unsigned Attribute,
+ void addComplexAddress(const DbgVariable &DV, DIE *Die, unsigned Attribute,
const MachineLocation &Location);
// FIXME: Should be reformulated in terms of addComplexAddress.
@@ -292,12 +292,13 @@ public:
/// starting location. Add the DWARF information to the die. Obsolete,
/// please use addComplexAddress instead.
///
- void addBlockByrefAddress(DbgVariable *&DV, DIE *Die, unsigned Attribute,
+ void addBlockByrefAddress(const DbgVariable &DV, DIE *Die, unsigned Attribute,
const MachineLocation &Location);
/// addVariableAddress - Add DW_AT_location attribute for a
/// DbgVariable based on provided MachineLocation.
- void addVariableAddress(DbgVariable *&DV, DIE *Die, MachineLocation Location);
+ void addVariableAddress(const DbgVariable &DV, DIE *Die,
+ MachineLocation Location);
/// addToContextOwner - Add Die into the list of its context owner's children.
void addToContextOwner(DIE *Die, DIDescriptor Context);