From 49a49fe816122f9bc4cf8f909e0bc24aa84ea4ce Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 20 Aug 2017 13:03:48 +0000 Subject: Move helper classes into anonymous namespaces. No functionality change intended. llvm-svn: 311288 --- llvm/lib/ObjectYAML/DWARFVisitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/ObjectYAML/DWARFVisitor.cpp') diff --git a/llvm/lib/ObjectYAML/DWARFVisitor.cpp b/llvm/lib/ObjectYAML/DWARFVisitor.cpp index 36a9f7638bd..e6114c85ac0 100644 --- a/llvm/lib/ObjectYAML/DWARFVisitor.cpp +++ b/llvm/lib/ObjectYAML/DWARFVisitor.cpp @@ -34,11 +34,11 @@ void DWARFYAML::VisitorImpl::onVariableSizeValue(uint64_t U, unsigned Size) { } } -unsigned getOffsetSize(const DWARFYAML::Unit &Unit) { +static unsigned getOffsetSize(const DWARFYAML::Unit &Unit) { return Unit.Length.isDWARF64() ? 8 : 4; } -unsigned getRefSize(const DWARFYAML::Unit &Unit) { +static unsigned getRefSize(const DWARFYAML::Unit &Unit) { if (Unit.Version == 2) return Unit.AddrSize; return getOffsetSize(Unit); -- cgit v1.2.3