From c802fc2623cd3e3028e571cb36ef068918a1a5ed Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 29 Oct 2016 01:28:06 +0000 Subject: [PATCH] Attempt to fix a buildbot really this time. llvm-svn: 285489 --- lld/ELF/Memory.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Memory.cpp b/lld/ELF/Memory.cpp index 00fe815..cc21aea 100644 --- a/lld/ELF/Memory.cpp +++ b/lld/ELF/Memory.cpp @@ -9,7 +9,11 @@ #include "Memory.h" -llvm::BumpPtrAllocator lld::elf::BAlloc; -llvm::StringSaver lld::elf::Saver{BAlloc}; +using namespace llvm; -void lld::elf::freeArena() { lld::elf::BAlloc.Reset(); } +namespace lld { +BumpPtrAllocator elf::BAlloc; +StringSaver elf::Saver{elf::BAlloc}; + +void elf::freeArena() { elf::BAlloc.Reset(); } +} -- 2.7.4