[llvm] r299549 - [llvm-ar] Remove unneeded std::, NFCI.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 08:05:05 PDT 2017


Author: davide
Date: Wed Apr  5 10:05:05 2017
New Revision: 299549

URL: http://llvm.org/viewvc/llvm-project?rev=299549&view=rev
Log:
[llvm-ar] Remove unneeded std::, NFCI.

This makes it more consistent with other exit() calls in llvm-ar
(and the tools in general).

Modified:
    llvm/trunk/tools/llvm-ar/llvm-ar.cpp

Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=299549&r1=299548&r2=299549&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Wed Apr  5 10:05:05 2017
@@ -168,7 +168,7 @@ LLVM_ATTRIBUTE_NORETURN static void
 show_help(const std::string &msg) {
   errs() << ToolName << ": " << msg << "\n\n";
   cl::PrintHelpMessage();
-  std::exit(1);
+  exit(1);
 }
 
 // Extract the member filename from the command line for the [relpos] argument
@@ -465,7 +465,7 @@ static void performReadOperation(Archive
     return;
   for (StringRef Name : Members)
     errs() << Name << " was not found\n";
-  std::exit(1);
+  exit(1);
 }
 
 static void addMember(std::vector<NewArchiveMember> &Members,




More information about the llvm-commits mailing list