From be92149f10807155d959e55d17d1c38a22ea21e0 Mon Sep 17 00:00:00 2001 From: Andy Ragusa Date: Fri, 15 Dec 2023 11:32:20 -0800 Subject: [PATCH] blah --- .../ClamBCExtendPHIsTo64Bit.cpp | 20 +------------------ .../ClamBCLogicalCompiler.cpp | 7 +------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/libclambcc/ClamBCExtendPHIsTo64Bit/ClamBCExtendPHIsTo64Bit.cpp b/libclambcc/ClamBCExtendPHIsTo64Bit/ClamBCExtendPHIsTo64Bit.cpp index 8a3841796f..c9181e7b00 100644 --- a/libclambcc/ClamBCExtendPHIsTo64Bit/ClamBCExtendPHIsTo64Bit.cpp +++ b/libclambcc/ClamBCExtendPHIsTo64Bit/ClamBCExtendPHIsTo64Bit.cpp @@ -24,7 +24,6 @@ #include "Common/ClamBCUtilities.h" #include -//#include "ClamBCTargetMachine.h" #include #include #include @@ -122,12 +121,10 @@ class ClamBCExtendPHIsTo64Bit : public PassInfoMixin public: static char ID; - explicit ClamBCExtendPHIsTo64Bit() - /* : ModulePass(ID) */ {} + explicit ClamBCExtendPHIsTo64Bit() {} virtual ~ClamBCExtendPHIsTo64Bit() {} - //virtual bool runOnModule(Module &m) virtual PreservedAnalyses run(Module & m, ModuleAnalysisManager & MAM) { @@ -150,18 +147,6 @@ class ClamBCExtendPHIsTo64Bit : public PassInfoMixin } }; -#if 0 -char ClamBCExtendPHIsTo64Bit::ID = 0; -static RegisterPass X("clambc-extend-phis-to-64bit", "ClamBCExtendPHIsTo64Bit Pass", - false /* Only looks at CFG */, - false /* Analysis Pass */); - -llvm::ModulePass *createClamBCExtendPHIsTo64Bit() -{ - return new ClamBCExtendPHIsTo64Bit(); -} -#else - // This part is the new way of registering your pass extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK llvmGetPassPluginInfo() { @@ -185,6 +170,3 @@ llvmGetPassPluginInfo() { - -#endif - diff --git a/libclambcc/ClamBCLogicalCompiler/ClamBCLogicalCompiler.cpp b/libclambcc/ClamBCLogicalCompiler/ClamBCLogicalCompiler.cpp index 44daab1ef2..76ad3d38ab 100644 --- a/libclambcc/ClamBCLogicalCompiler/ClamBCLogicalCompiler.cpp +++ b/libclambcc/ClamBCLogicalCompiler/ClamBCLogicalCompiler.cpp @@ -64,13 +64,8 @@ namespace ClamBCLogicalCompiler class ClamBCLogicalCompiler : public PassInfoMixin { public: -#if 0 - static char ID; -#endif - ClamBCLogicalCompiler() - /* : ModulePass(ID) */ {} + ClamBCLogicalCompiler() {} - //virtual bool runOnModule(Module &M); virtual PreservedAnalyses run(Module & m, ModuleAnalysisManager & MAM); virtual void getAnalysisUsage(AnalysisUsage &AU) const {