[lld] r247644 - Fix style.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 17:33:11 PDT 2015


Author: ruiu
Date: Mon Sep 14 19:33:11 2015
New Revision: 247644

URL: http://llvm.org/viewvc/llvm-project?rev=247644&view=rev
Log:
Fix style.

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=247644&r1=247643&r2=247644&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Mon Sep 14 19:33:11 2015
@@ -624,14 +624,10 @@ void LinkerDriver::link(llvm::ArrayRef<c
   }
 
   // Handle /safeseh.
-  if (Args.hasArg(OPT_safeseh)) {
-    for (ObjectFile *File : Symtab.ObjectFiles) {
-      if (File->SEHCompat)
-        continue;
-      error(Twine("/safeseh: ") + File->getName() +
-            " is not compatible with SEH");
-    }
-  }
+  if (Args.hasArg(OPT_safeseh))
+    for (ObjectFile *File : Symtab.ObjectFiles)
+      if (!File->SEHCompat)
+        error("/safeseh: " + File->getName() + " is not compatible with SEH");
 
   // Windows specific -- when we are creating a .dll file, we also
   // need to create a .lib file.




More information about the llvm-commits mailing list