[llvm] Remove unused using decl and var in PGOInstrumentationTest (PR #103447)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 14:06:18 PDT 2024


https://github.com/snehasish created https://github.com/llvm/llvm-project/pull/103447

None

>From 2d5f2a4348296d6565b3271f1d7d029c443388c8 Mon Sep 17 00:00:00 2001
From: Snehasish Kumar <snehasishk at google.com>
Date: Tue, 13 Aug 2024 14:04:03 -0700
Subject: [PATCH] Remove unused using decl and var in PGOInstrumentationTest

---
 .../Transforms/Instrumentation/PGOInstrumentationTest.cpp       | 2 --
 1 file changed, 2 deletions(-)

diff --git a/llvm/unittests/Transforms/Instrumentation/PGOInstrumentationTest.cpp b/llvm/unittests/Transforms/Instrumentation/PGOInstrumentationTest.cpp
index 02c2df2a138b02..8c649d3a5ab885 100644
--- a/llvm/unittests/Transforms/Instrumentation/PGOInstrumentationTest.cpp
+++ b/llvm/unittests/Transforms/Instrumentation/PGOInstrumentationTest.cpp
@@ -24,7 +24,6 @@ using namespace llvm;
 using testing::_;
 using ::testing::DoDefault;
 using ::testing::Invoke;
-using ::testing::IsNull;
 using ::testing::NotNull;
 using ::testing::Ref;
 using ::testing::Return;
@@ -107,7 +106,6 @@ class MockModuleAnalysisHandle
 struct PGOInstrumentationGenTest
     : public Test,
       WithParamInterface<std::tuple<StringRef, StringRef>> {
-  LLVMContext Ctx;
   ModulePassManager MPM;
   PassBuilder PB;
   MockModuleAnalysisHandle MMAHandle;



More information about the llvm-commits mailing list