From nobody Sat Dec 25 11:56:04 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 59C2018F37E2; Sat, 25 Dec 2021 11:56:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JLj7X1s7Qz4lV6; Sat, 25 Dec 2021 11:56:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4022916870; Sat, 25 Dec 2021 11:56:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BPBu4ip007216; Sat, 25 Dec 2021 11:56:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BPBu43O007215; Sat, 25 Dec 2021 11:56:04 GMT (envelope-from git) Date: Sat, 25 Dec 2021 11:56:04 GMT Message-Id: <202112251156.1BPBu43O007215@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 622321fa8a1f - stable/12 - llvm BPF target: add missed source files List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 622321fa8a1feb6ce3200a29b53b9b0460d206c8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640433368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+kGqSAC3OVw66fqv61ZEN17Ti0XGIJ1EhIVVRL6WkBg=; b=aGOHmaAtiL29jtknSGSkx1eB+GbyG01USFH8njrKEfA7B81Ylil6kSgkYpdt0MrSPb1T5w bxbSND88uk8lJ6rZyVKqjRtZqUVGljmoTXGuRWOyBVmYMgZEr22iKRS3Y+vvqToVVYJxkL wMsV3TSCK6SzcWG5FL3KoFGTvRS5Ymorbium37nP7CyfpRTe33uDIU/saO6dBITh35QUKV DkPWS9vKrclFHJaY/DdY3EVL5gsFlwB+Ksun9GOOjcwZDyBONA8kSesP3b7+wxTqrrj+sH N6lEItZYh5B37vYAndntB10AW0rJBH9kkpLJvZTaMkkE2BKGmuFMvMItwnJGXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640433368; a=rsa-sha256; cv=none; b=OTR53ydUZvW1ryiTCiHAv/pAg1Z+06qDwoMxeKFv6dLmJkkfr/0W+ZjyQJLYNLeKvZrAwb J76kS3Dt4xtnSlZYw95O/nkNY/ReQ8PJNN2EPMK43w6a1JjW+DveVEloPzTIYc/uRhU7I3 Q/GnWZkSP/Q70a6Be0YQespp8goqgsB1YrCwkAfEm/cIAvFFb7LcNz1uw8b+tSJ7evz5D8 nvhgWPklGvt+Ci42EiugnBgx/JYI2e5GLkrGexz97Z5yt5P0g1Cd4zGo22f6x0rblChYkk rqRsek0BJVFOGRliK8DU5Ws1rfSzmi6C/LmkI/vmCnpgCHTo6iKr6NXxtZAinw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=622321fa8a1feb6ce3200a29b53b9b0460d206c8 commit 622321fa8a1feb6ce3200a29b53b9b0460d206c8 Author: Dimitry Andric AuthorDate: 2021-11-02 16:49:34 +0000 Commit: Dimitry Andric CommitDate: 2021-12-25 11:51:31 +0000 llvm BPF target: add missed source files Otherwise, linking llvm binaries with this target enabled (which is not the default) will fail with a number of undefined symbol errors: ld: error: undefined symbol: llvm::initializeBPFAdjustOptPass(llvm::PassRegistry&) ld: error: undefined symbol: llvm::initializeBPFCheckAndAdjustIRPass(llvm::PassRegistry&) ld: error: undefined symbol: llvm::createBPFCheckAndAdjustIR() ld: error: undefined symbol: llvm::createBPFAdjustOpt() ld: error: undefined symbol: llvm::BPFAdjustOptPass::run(llvm::Module&, llvm::AnalysisManager&) Reported by: Michael Dexter MFC after: 3 days (cherry picked from commit d30dc78f798adebda488d2b8e21290268d2fb501) --- lib/clang/libllvm/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index dd85994dc07f..fadd932c34a4 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -1164,7 +1164,9 @@ SRCS_MIN+= Target/ARM/Utils/ARMBaseInfo.cpp .if ${MK_LLVM_TARGET_BPF} != "no" SRCS_MIN+= Target/BPF/AsmParser/BPFAsmParser.cpp SRCS_MIN+= Target/BPF/BPFAbstractMemberAccess.cpp +SRCS_MIN+= Target/BPF/BPFAdjustOpt.cpp SRCS_MIN+= Target/BPF/BPFAsmPrinter.cpp +SRCS_MIN+= Target/BPF/BPFCheckAndAdjustIR.cpp SRCS_MIN+= Target/BPF/BPFFrameLowering.cpp SRCS_MIN+= Target/BPF/BPFISelDAGToDAG.cpp SRCS_MIN+= Target/BPF/BPFISelLowering.cpp