svn commit: r357160 - in projects/clang1000-import: contrib/llvm-project/lld/tools/lld usr.bin/clang/lld

Dimitry Andric dim at FreeBSD.org
Sun Jan 26 21:55:18 UTC 2020


Author: dim
Date: Sun Jan 26 21:55:17 2020
New Revision: 357160
URL: https://svnweb.freebsd.org/changeset/base/357160

Log:
  Update build glue for lld (MK_LLD=yes). Also update invocation of
  elf::link() in lld.cpp.

Modified:
  projects/clang1000-import/contrib/llvm-project/lld/tools/lld/lld.cpp
  projects/clang1000-import/usr.bin/clang/lld/Makefile

Modified: projects/clang1000-import/contrib/llvm-project/lld/tools/lld/lld.cpp
==============================================================================
--- projects/clang1000-import/contrib/llvm-project/lld/tools/lld/lld.cpp	Sun Jan 26 21:34:46 2020	(r357159)
+++ projects/clang1000-import/contrib/llvm-project/lld/tools/lld/lld.cpp	Sun Jan 26 21:55:17 2020	(r357160)
@@ -148,7 +148,7 @@ int main(int argc, const char **argv) {
 
   std::vector<const char *> args(argv, argv + argc);
 #ifdef __FreeBSD__
-  return !elf::link(args, true);
+  return !elf::link(args, canExitEarly(), llvm::outs(), llvm::errs());
 #else
   switch (parseFlavor(args)) {
   case Gnu:

Modified: projects/clang1000-import/usr.bin/clang/lld/Makefile
==============================================================================
--- projects/clang1000-import/usr.bin/clang/lld/Makefile	Sun Jan 26 21:34:46 2020	(r357159)
+++ projects/clang1000-import/usr.bin/clang/lld/Makefile	Sun Jan 26 21:55:17 2020	(r357160)
@@ -27,6 +27,7 @@ CFLAGS+=	-I${OBJTOP}/lib/clang/libllvm
 
 SRCDIR=		lld
 SRCS+=		Common/Args.cpp
+SRCS+=		Common/DWARF.cpp
 SRCS+=		Common/ErrorHandler.cpp
 SRCS+=		Common/Filesystem.cpp
 SRCS+=		Common/Memory.cpp
@@ -36,6 +37,7 @@ SRCS+=		Common/TargetOptionsCommandFlags.cpp
 SRCS+=		Common/Threads.cpp
 SRCS+=		Common/Version.cpp
 SRCS+=		ELF/AArch64ErrataFix.cpp
+SRCS+=		ELF/ARMErrataFix.cpp
 SRCS+=		ELF/Arch/AArch64.cpp
 SRCS+=		ELF/Arch/AMDGPU.cpp
 SRCS+=		ELF/Arch/ARM.cpp


More information about the svn-src-projects mailing list