Instead of enclosing an entire file, add lld:: specifier for public functions.
authorRui Ueyama <ruiu@google.com>
Fri, 27 Oct 2017 18:04:49 +0000 (18:04 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 27 Oct 2017 18:04:49 +0000 (18:04 +0000)
llvm-svn: 316776

lld/Common/ErrorHandler.cpp

index 6e91583..522174c 100644 (file)
@@ -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, const Twine &Msg) {
   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 &Msg) {
   error(Msg);
   exitLld(1);
 }
-
-} // end namespace lld