Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:41

0001 //===-- StripDeadPrototypes.h - Remove unused function declarations -------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This pass loops over all of the functions in the input module, looking for
0010 // dead declarations and removes them. Dead declarations are declarations of
0011 // functions for which no implementation is available (i.e., declarations for
0012 // unused library functions).
0013 //
0014 //===----------------------------------------------------------------------===//
0015 
0016 #ifndef LLVM_TRANSFORMS_IPO_STRIPDEADPROTOTYPES_H
0017 #define LLVM_TRANSFORMS_IPO_STRIPDEADPROTOTYPES_H
0018 
0019 #include "llvm/IR/PassManager.h"
0020 
0021 namespace llvm {
0022 
0023 class Module;
0024 
0025 /// Pass to remove unused function declarations.
0026 struct StripDeadPrototypesPass : PassInfoMixin<StripDeadPrototypesPass> {
0027   PreservedAnalyses run(Module &M, ModuleAnalysisManager &);
0028 };
0029 
0030 }
0031 
0032 #endif // LLVM_TRANSFORMS_IPO_STRIPDEADPROTOTYPES_H