[PATCH] D39000: [ELF] - Implement --orphan-handling option.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 11:30:13 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/LinkerScript.cpp:459-460
+static void reportOrphan(InputSectionBase *IS, StringRef Name) {
+  if (Config->OrphanHandling == OrphanHandlingPolicy::Place)
+    return;
+  if (Config->OrphanHandling == OrphanHandlingPolicy::Warn)
----------------
You don't need this if you use `else if` instead of `else`.


https://reviews.llvm.org/D39000





More information about the llvm-commits mailing list