diff options
Diffstat (limited to 'contrib/llvm-project/lld/COFF/MinGW.cpp')
| -rw-r--r-- | contrib/llvm-project/lld/COFF/MinGW.cpp | 14 | 
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/llvm-project/lld/COFF/MinGW.cpp b/contrib/llvm-project/lld/COFF/MinGW.cpp index 2ca8ca0c058c..270cdaab4d9c 100644 --- a/contrib/llvm-project/lld/COFF/MinGW.cpp +++ b/contrib/llvm-project/lld/COFF/MinGW.cpp @@ -13,11 +13,12 @@  #include "llvm/Support/Path.h"  #include "llvm/Support/raw_ostream.h" -using namespace lld; -using namespace lld::coff;  using namespace llvm;  using namespace llvm::COFF; +namespace lld { +namespace coff { +  AutoExporter::AutoExporter() {    excludeLibs = {        "libgcc", @@ -55,7 +56,7 @@ AutoExporter::AutoExporter() {        // C++ symbols        "__rtti_",        "__builtin_", -      // Artifical symbols such as .refptr +      // Artificial symbols such as .refptr        ".",    }; @@ -146,9 +147,9 @@ bool AutoExporter::shouldExport(Defined *sym) const {    return !excludeObjects.count(fileName);  } -void coff::writeDefFile(StringRef name) { +void writeDefFile(StringRef name) {    std::error_code ec; -  raw_fd_ostream os(name, ec, sys::fs::F_None); +  raw_fd_ostream os(name, ec, sys::fs::OF_None);    if (ec)      fatal("cannot open " + name + ": " + ec.message()); @@ -164,3 +165,6 @@ void coff::writeDefFile(StringRef name) {      os << "\n";    }  } + +} // namespace coff +} // namespace lld  | 
