[lld] da093c3 - [lld] Remove special cases from default ld driver mode.
Dan Albert via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 12:28:50 PDT 2020
Author: Dan Albert
Date: 2020-04-29T12:28:29-07:00
New Revision: da093c388fc9a559295faa6265cb8b1643ce9eeb
URL: https://github.com/llvm/llvm-project/commit/da093c388fc9a559295faa6265cb8b1643ce9eeb
DIFF: https://github.com/llvm/llvm-project/commit/da093c388fc9a559295faa6265cb8b1643ce9eeb.diff
LOG: [lld] Remove special cases from default ld driver mode.
Summary:
Use the Gnu driver mode by default for all platforms when ld is
invoked. Other names for the program (such as link or ld64) continue
working as before.
Reviewers: MaskRay, int3, srhines, smeenai, ruiu
Reviewed By: MaskRay, srhines, smeenai, ruiu
Subscribers: smeenai, srhines, nickdesaulniers, llvm-commits
Tags: #lld, #llvm
Differential Revision: https://reviews.llvm.org/D78837
Added:
Modified:
lld/tools/lld/lld.cpp
Removed:
################################################################################
diff --git a/lld/tools/lld/lld.cpp b/lld/tools/lld/lld.cpp
index 58a291d1e921..8a8f8d04bbda 100644
--- a/lld/tools/lld/lld.cpp
+++ b/lld/tools/lld/lld.cpp
@@ -96,17 +96,9 @@ static bool isPETarget(std::vector<const char *> &v) {
}
static Flavor parseProgname(StringRef progname) {
-#if __APPLE__
- // Use Darwin driver for "ld" on Darwin.
- if (progname == "ld")
- return Darwin;
-#endif
-
-#if LLVM_ON_UNIX
- // Use GNU driver for "ld" on other Unix-like system.
+ // Use GNU driver for "ld" by default.
if (progname == "ld")
return Gnu;
-#endif
// Progname may be something like "lld-gnu". Parse it.
SmallVector<StringRef, 3> v;
More information about the llvm-commits
mailing list