[clang] [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions (PR #97115)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 28 14:57:49 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Jacob Lambert (lamb-j)
<details>
<summary>Changes</summary>
Follow up to https://github.com/llvm/llvm-project/commit/2264544e2d13957f36fd19864d9633a3278a9d74
---
Full diff: https://github.com/llvm/llvm-project/pull/97115.diff
2 Files Affected:
- (modified) clang/lib/CodeGen/LinkInModulesPass.cpp (+1-2)
- (modified) clang/lib/CodeGen/LinkInModulesPass.h (-1)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/97115
More information about the cfe-commits
mailing list