[lld] r357421 - [NFC][LLD] Specify namespaces explicity to fix build failure on GCC 5 after r357383

Matthew Voss via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 12:23:56 PDT 2019


Author: ormris
Date: Mon Apr  1 12:23:56 2019
New Revision: 357421

URL: http://llvm.org/viewvc/llvm-project?rev=357421&view=rev
Log:
[NFC][LLD] Specify namespaces explicity to fix build failure on GCC 5 after r357383

Modified:
    lld/trunk/COFF/DebugTypes.cpp

Modified: lld/trunk/COFF/DebugTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DebugTypes.cpp?rev=357421&r1=357420&r2=357421&view=diff
==============================================================================
--- lld/trunk/COFF/DebugTypes.cpp (original)
+++ lld/trunk/COFF/DebugTypes.cpp Mon Apr  1 12:23:56 2019
@@ -71,14 +71,18 @@ TpiSource *coff::makeUsePrecompSource(Ob
   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




More information about the llvm-commits mailing list