[lld] r312961 - Remove unused includes and do not enclose the entire file with a namespace.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 15:04:01 PDT 2017
Author: ruiu
Date: Mon Sep 11 15:04:01 2017
New Revision: 312961
URL: http://llvm.org/viewvc/llvm-project?rev=312961&view=rev
Log:
Remove unused includes and do not enclose the entire file with a namespace.
Modified:
lld/trunk/MinGW/Driver.cpp
Modified: lld/trunk/MinGW/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/MinGW/Driver.cpp?rev=312961&r1=312960&r2=312961&view=diff
==============================================================================
--- lld/trunk/MinGW/Driver.cpp (original)
+++ lld/trunk/MinGW/Driver.cpp Mon Sep 11 15:04:01 2017
@@ -16,8 +16,6 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
-#include "llvm/ADT/StringSwitch.h"
-#include "llvm/ADT/Triple.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/Option.h"
@@ -32,8 +30,6 @@
using namespace lld;
using namespace llvm;
-namespace lld {
-namespace mingw {
namespace {
// Create OptTable
@@ -118,7 +114,7 @@ opt::InputArgList COFFLdOptTable::parse(
// Convert Unix-ish command line arguments to Windows-ish ones and
// then call coff::link.
-bool link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) {
+bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) {
COFFLdOptTable Parser;
opt::InputArgList Args = Parser.parse(ArgsArr.slice(1));
@@ -194,6 +190,3 @@ bool link(ArrayRef<const char *> ArgsArr
Vec.push_back(S.c_str());
return coff::link(Vec);
}
-
-} // namespace mingw
-} // namespace lld
More information about the llvm-commits
mailing list