[clang] [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions (PR #97115)
Jacob Lambert via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 28 14:57:24 PDT 2024
https://github.com/lamb-j created https://github.com/llvm/llvm-project/pull/97115
Follow up to https://github.com/llvm/llvm-project/commit/2264544e2d13957f36fd19864d9633a3278a9d74
>From 6131f15194e0f97fea381d896f5f9847ad4ba786 Mon Sep 17 00:00:00 2001
From: Jacob Lambert <jacob.lambert at amd.com>
Date: Fri, 28 Jun 2024 14:54:01 -0700
Subject: [PATCH] [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions
---
clang/lib/CodeGen/LinkInModulesPass.cpp | 3 +--
clang/lib/CodeGen/LinkInModulesPass.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/clang/lib/CodeGen/LinkInModulesPass.cpp b/clang/lib/CodeGen/LinkInModulesPass.cpp
index 9dfcca53754a4..44b2df52f001a 100644
--- a/clang/lib/CodeGen/LinkInModulesPass.cpp
+++ b/clang/lib/CodeGen/LinkInModulesPass.cpp
@@ -20,8 +20,7 @@
using namespace llvm;
-LinkInModulesPass::LinkInModulesPass(clang::BackendConsumer *BC) : BC(BC),
- ShouldLinkFiles(ShouldLinkFiles) {}
+LinkInModulesPass::LinkInModulesPass(clang::BackendConsumer *BC) : BC(BC) {}
PreservedAnalyses LinkInModulesPass::run(Module &M, ModuleAnalysisManager &AM) {
if (!BC)
diff --git a/clang/lib/CodeGen/LinkInModulesPass.h b/clang/lib/CodeGen/LinkInModulesPass.h
index a184cce184c03..3edbfd076e150 100644
--- a/clang/lib/CodeGen/LinkInModulesPass.h
+++ b/clang/lib/CodeGen/LinkInModulesPass.h
@@ -28,7 +28,6 @@ class Pass;
/// for use with the legacy pass manager.
class LinkInModulesPass : public PassInfoMixin<LinkInModulesPass> {
clang::BackendConsumer *BC;
- bool ShouldLinkFiles;
public:
LinkInModulesPass(clang::BackendConsumer *BC);
More information about the cfe-commits
mailing list