diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-14 22:23:05 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-14 22:23:05 +0000 |
commit | cbb5c73942b62e693d9233907720138dd4f40f26 (patch) | |
tree | 18b1aa0b75d08e498db4ebb65e8e70754dee3195 /lib/CodeGen/AsmPrinter/DIEHash.h | |
parent | 67ca7b1bb07e331981e700cc4cc5944f68a9e256 (diff) | |
download | llvm-cbb5c73942b62e693d9233907720138dd4f40f26.tar.gz llvm-cbb5c73942b62e693d9233907720138dd4f40f26.tar.bz2 llvm-cbb5c73942b62e693d9233907720138dd4f40f26.tar.xz |
DebugInfo: Prefer references over pointers, pass by const reference for a type that will grow in the future
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIEHash.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIEHash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIEHash.h b/lib/CodeGen/AsmPrinter/DIEHash.h index 0c7d6e25d5..f53529c54f 100644 --- a/lib/CodeGen/AsmPrinter/DIEHash.h +++ b/lib/CodeGen/AsmPrinter/DIEHash.h @@ -59,10 +59,10 @@ private: /// \brief Collects the attributes of DIE \param Die into the \param Attrs /// structure. - void collectAttributes(DIE *Die, DIEAttrs *Attrs); + void collectAttributes(DIE *Die, DIEAttrs &Attrs); /// \brief Hashes the attributes in \param Attrs in order. - void hashAttributes(DIEAttrs Attrs); + void hashAttributes(const DIEAttrs &Attrs); /// \brief Hashes an individual attribute. void hashAttribute(AttrEntry Attr); |