[PATCH] D41814: [COFF] Delete CanExitEarly

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 7 22:09:13 PST 2018


smeenai created this revision.
smeenai added reviewers: andrewrk, inglorion, ruiu.

It was being set but never used, and its value is only ever needed
locally in lld::coff::link.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D41814

Files:
  COFF/Config.h
  COFF/Driver.cpp


Index: COFF/Driver.cpp
===================================================================
--- COFF/Driver.cpp
+++ COFF/Driver.cpp
@@ -60,7 +60,6 @@
   errorHandler().ExitEarly = CanExitEarly;
   Config = make<Configuration>();
   Config->Argv = {Args.begin(), Args.end()};
-  Config->CanExitEarly = CanExitEarly;
 
   Symtab = make<SymbolTable>();
 
Index: COFF/Config.h
===================================================================
--- COFF/Config.h
+++ COFF/Config.h
@@ -164,7 +164,6 @@
   uint32_t MinorImageVersion = 0;
   uint32_t MajorOSVersion = 6;
   uint32_t MinorOSVersion = 0;
-  bool CanExitEarly = false;
   bool DynamicBase = true;
   bool AllowBind = true;
   bool NxCompat = true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41814.128892.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180108/300aa0f7/attachment.bin>


More information about the llvm-commits mailing list