diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-09-15 00:33:11 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-09-15 00:33:11 +0000 |
| commit | 13563d8645306e03b05ea01c41d2758d62158966 (patch) | |
| tree | 42edf937d0390ff802041e698776e4996a59ecfd | |
| parent | ca8eefddb7a5c85ad1e26773eb1ba894c7b930f5 (diff) | |
| download | bcm5719-llvm-13563d8645306e03b05ea01c41d2758d62158966.tar.gz bcm5719-llvm-13563d8645306e03b05ea01c41d2758d62158966.zip | |
Fix style.
llvm-svn: 247644
| -rw-r--r-- | lld/COFF/Driver.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index f36c06ffd9f..47f7d658841 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -624,14 +624,10 @@ void LinkerDriver::link(llvm::ArrayRef<const char *> ArgsArr) { } // 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. |

