[lld] r240818 - Fix MSVC build.
Peter Collingbourne
peter at pcc.me.uk
Fri Jun 26 12:20:09 PDT 2015
Author: pcc
Date: Fri Jun 26 14:20:09 2015
New Revision: 240818
URL: http://llvm.org/viewvc/llvm-project?rev=240818&view=rev
Log:
Fix MSVC build.
Modified:
lld/trunk/COFF/Driver.cpp
Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=240818&r1=240817&r2=240818&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Fri Jun 26 14:20:09 2015
@@ -34,7 +34,7 @@ using llvm::COFF::IMAGE_SUBSYSTEM_UNKNOW
using llvm::COFF::IMAGE_SUBSYSTEM_WINDOWS_CUI;
using llvm::COFF::IMAGE_SUBSYSTEM_WINDOWS_GUI;
using llvm::sys::Process;
-using llvm::sys::fs::OpenFlags::F_Text;
+using llvm::sys::fs::OpenFlags;
using llvm::sys::fs::file_magic;
using llvm::sys::fs::identify_magic;
@@ -601,7 +601,7 @@ bool LinkerDriver::link(llvm::ArrayRef<c
if (auto *Arg = Args.getLastArg(OPT_lldmap)) {
std::error_code EC;
- llvm::raw_fd_ostream Out(Arg->getValue(), EC, F_Text);
+ llvm::raw_fd_ostream Out(Arg->getValue(), EC, OpenFlags::F_Text);
if (EC) {
llvm::errs() << EC.message() << "\n";
return false;
More information about the llvm-commits
mailing list