From 3c023420d1d02f8fe32606c802fc868baed76dec Mon Sep 17 00:00:00 2001 From: Matthew Voss Date: Mon, 1 Apr 2019 19:23:56 +0000 Subject: [PATCH] [NFC][LLD] Specify namespaces explicity to fix build failure on GCC 5 after r357383 llvm-svn: 357421 --- lld/COFF/DebugTypes.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lld/COFF/DebugTypes.cpp b/lld/COFF/DebugTypes.cpp index 1378c2f..34f32ea 100644 --- a/lld/COFF/DebugTypes.cpp +++ b/lld/COFF/DebugTypes.cpp @@ -71,14 +71,18 @@ TpiSource *coff::makeUsePrecompSource(ObjFile *F, PrecompRecord *Precomp) { return new UsePrecompSource(F, Precomp); } +namespace lld { +namespace coff { template <> -const PrecompRecord &lld::coff::retrieveDependencyInfo(TpiSource *Source) { +const PrecompRecord &retrieveDependencyInfo(TpiSource *Source) { assert(Source->Kind == TpiSource::UsingPCH); return ((UsePrecompSource *)Source)->PrecompDependency; } template <> -const TypeServer2Record &lld::coff::retrieveDependencyInfo(TpiSource *Source) { +const TypeServer2Record &retrieveDependencyInfo(TpiSource *Source) { assert(Source->Kind == TpiSource::UsingPDB); return ((UseTypeServerSource *)Source)->TypeServerDependency; -} \ No newline at end of file +} +} // namespace coff +} // namespace lld -- 2.7.4