[lld] r316776 - Instead of enclosing an entire file, add lld:: specifier for public functions.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 11:04:49 PDT 2017


Author: ruiu
Date: Fri Oct 27 11:04:49 2017
New Revision: 316776

URL: http://llvm.org/viewvc/llvm-project?rev=316776&view=rev
Log:
Instead of enclosing an entire file, add lld:: specifier for public functions.

Modified:
    lld/trunk/Common/ErrorHandler.cpp

Modified: lld/trunk/Common/ErrorHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/Common/ErrorHandler.cpp?rev=316776&r1=316775&r2=316776&view=diff
==============================================================================
--- lld/trunk/Common/ErrorHandler.cpp (original)
+++ lld/trunk/Common/ErrorHandler.cpp Fri Oct 27 11:04:49 2017
@@ -22,7 +22,6 @@
 #endif
 
 using namespace llvm;
-
 using namespace lld;
 
 // The functions defined in this file can be called from multiple threads,
@@ -41,14 +40,12 @@ static void newline(raw_ostream *ErrorOS
   Flag = StringRef(Msg.str()).contains('\n');
 }
 
-namespace lld {
-
-ErrorHandler &errorHandler() {
+ErrorHandler &lld::errorHandler() {
   static ErrorHandler Handler;
   return Handler;
 }
 
-void exitLld(int Val) {
+void lld::exitLld(int Val) {
   waitForBackgroundThreads();
   // Dealloc/destroy ManagedStatic variables before calling
   // _exit(). In a non-LTO build, this is a nop. In an LTO
@@ -118,5 +115,3 @@ void ErrorHandler::fatal(const Twine &Ms
   error(Msg);
   exitLld(1);
 }
-
-} // end namespace lld




More information about the llvm-commits mailing list