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 | d0d6fcc923f062fc388ebe98fc074d61e9c2320f (patch) | |
tree | 142dd8387374b6ab18a2adeccd0cc0778c324bc6 /llvm/lib/CodeGen/AsmPrinter/DIEHash.h | |
parent | 3494b7ee426bef722baf0b28d19ca82e951b05f7 (diff) | |
download | bcm5719-llvm-d0d6fcc923f062fc388ebe98fc074d61e9c2320f.tar.gz bcm5719-llvm-d0d6fcc923f062fc388ebe98fc074d61e9c2320f.zip |
DebugInfo: Prefer references over pointers, pass by const reference for a type that will grow in the future
llvm-svn: 188422
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIEHash.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIEHash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.h b/llvm/lib/CodeGen/AsmPrinter/DIEHash.h index 0c7d6e25d5f..f53529c54f1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.h +++ b/llvm/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); |