diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-25 18:52:29 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-25 18:52:29 +0000 |
commit | b0b3fcf6d36b56962b2d0b048487c45632b8a101 (patch) | |
tree | d90bb91e81851f8d6e807c79d8a12a9c2ef8e232 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | |
parent | da5eaeda017a88613130a02d5ffac230bad94231 (diff) | |
download | bcm5719-llvm-b0b3fcf6d36b56962b2d0b048487c45632b8a101.tar.gz bcm5719-llvm-b0b3fcf6d36b56962b2d0b048487c45632b8a101.zip |
DwarfUnit: return by reference from createAndAddDIE
Since this doesn't return ownership (the DIE has been added to the
specified parent already) nor return null, just return by reference.
llvm-svn: 207259
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h index 96ef40d94dd..17be320f209 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h @@ -432,7 +432,7 @@ public: /// Create a DIE with the given Tag, add the DIE to its parent, and /// call insertDIE if MD is not null. - DIE *createAndAddDIE(unsigned Tag, DIE &Parent, + DIE &createAndAddDIE(unsigned Tag, DIE &Parent, DIDescriptor N = DIDescriptor()); /// Compute the size of a header for this unit, not including the initial @@ -526,7 +526,7 @@ private: /// If this is a named finished type then include it in the list of types for /// the accelerator tables. - void updateAcceleratorTables(DIScope Context, DIType Ty, const DIE *TyDIE); + void updateAcceleratorTables(DIScope Context, DIType Ty, const DIE &TyDIE); }; class DwarfCompileUnit : public DwarfUnit { |