diff --git a/llvm/lib/Transforms/Coroutines/CoroInternal.h b/llvm/lib/Transforms/Coroutines/CoroInternal.h index e2f129c38d929..d08ed0aaa4b08 100644 --- a/llvm/lib/Transforms/Coroutines/CoroInternal.h +++ b/llvm/lib/Transforms/Coroutines/CoroInternal.h @@ -47,8 +47,6 @@ namespace coro { bool declaresIntrinsics(const Module &M, const std::initializer_list); -void replaceAllCoroAllocs(CoroBeginInst *CB, bool Replacement); -void replaceAllCoroFrees(CoroBeginInst *CB, Value *Replacement); void replaceCoroFree(CoroIdInst *CoroId, bool Elide); void updateCallGraph(Function &Caller, ArrayRef Funcs, CallGraph &CG, CallGraphSCC &SCC); diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp index 34ee70a6d3802..7c4a204e953dc 100644 --- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp +++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp @@ -104,7 +104,6 @@ class CoroCloner { ValueToValueMapTy VMap; IRBuilder<> Builder; Value *NewFramePtr = nullptr; - Value *SwiftErrorSlot = nullptr; /// The active suspend instruction; meaningful only for continuation and async /// ABIs. @@ -152,7 +151,6 @@ class CoroCloner { llvm_unreachable("Unknown CoroCloner::Kind enum"); } - void createDeclaration(); void replaceEntryBlock(); Value *deriveNewFramePointer(); void replaceRetconOrAsyncSuspendUses(); @@ -160,7 +158,6 @@ class CoroCloner { void replaceCoroEnds(); void replaceSwiftErrorOps(); void handleFinalSuspend(); - void maybeFreeContinuationStorage(); }; } // end anonymous namespace diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index f422d1b51b991..85b59838b4862 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -835,7 +835,6 @@ class NewGVN { BasicBlock *getBlockForValue(Value *V) const; void deleteExpression(const Expression *E) const; MemoryUseOrDef *getMemoryAccess(const Instruction *) const; - MemoryAccess *getDefiningAccess(const MemoryAccess *) const; MemoryPhi *getMemoryAccess(const BasicBlock *) const; template T *getMinDFSOfRange(const Range &) const; diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index fac7b555e9757..8ab272e756c18 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -167,11 +167,9 @@ class Mapper { void flush(); private: - void mapGlobalInitializer(GlobalVariable &GV, Constant &Init); void mapAppendingVariable(GlobalVariable &GV, Constant *InitPrefix, bool IsOldCtorDtor, ArrayRef NewMembers); - void mapGlobalIndirectSymbol(GlobalIndirectSymbol &GIS, Constant &Target); ValueToValueMapTy &getVM() { return *MCs[CurrentMCID].VM; } ValueMaterializer *getMaterializer() { return MCs[CurrentMCID].Materializer; }