From 95114b497fec9347a4e1025137bfd6a0635f2bc2 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 11 Sep 2017 22:04:01 +0000 Subject: [PATCH] Remove unused includes and do not enclose the entire file with a namespace. llvm-svn: 312961 --- lld/MinGW/Driver.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index 7d46d877dc76..2417eb04a2e0 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/MinGW/Driver.cpp @@ -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(ArrayRef Argv) { // Convert Unix-ish command line arguments to Windows-ish ones and // then call coff::link. -bool link(ArrayRef ArgsArr, raw_ostream &Diag) { +bool mingw::link(ArrayRef ArgsArr, raw_ostream &Diag) { COFFLdOptTable Parser; opt::InputArgList Args = Parser.parse(ArgsArr.slice(1)); @@ -194,6 +190,3 @@ bool link(ArrayRef ArgsArr, raw_ostream &Diag) { Vec.push_back(S.c_str()); return coff::link(Vec); } - -} // namespace mingw -} // namespace lld