From d0d687e606258053821ef31ede284e3fe69f5050 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 5 Dec 2020 16:22:12 -0800 Subject: [PATCH] [ConstantHoisting] Remove unused declaration optimizeConstants (NFC) The function was renamed to runImpl on Jul 2, 2016 in commit 071d8306b0d9d1345c1da84ae3e1c1b231ffd29d, but the old declaration has remained since. --- include/llvm/Transforms/Scalar/ConstantHoisting.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/llvm/Transforms/Scalar/ConstantHoisting.h b/include/llvm/Transforms/Scalar/ConstantHoisting.h index 26d4a2476a8..11379e59467 100644 --- a/include/llvm/Transforms/Scalar/ConstantHoisting.h +++ b/include/llvm/Transforms/Scalar/ConstantHoisting.h @@ -198,7 +198,6 @@ private: // constant GEP base. bool emitBaseConstants(GlobalVariable *BaseGV); void deleteDeadCastInst() const; - bool optimizeConstants(Function &Fn); }; } // end namespace llvm