Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===- StripSymbols.h - Strip symbols and debug info from a module --------===//
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 // The StripSymbols transformation implements code stripping. Specifically, it
0010 // can delete:
0011 //
0012 //   * names for virtual registers
0013 //   * symbols for internal globals and functions
0014 //   * debug information
0015 //
0016 // Note that this transformation makes code much less readable, so it should
0017 // only be used in situations where the 'strip' utility would be used, such as
0018 // reducing code size or making it harder to reverse engineer code.
0019 //
0020 //===----------------------------------------------------------------------===//
0021 
0022 #ifndef LLVM_TRANSFORMS_IPO_STRIPSYMBOLS_H
0023 #define LLVM_TRANSFORMS_IPO_STRIPSYMBOLS_H
0024 
0025 #include "llvm/IR/PassManager.h"
0026 
0027 namespace llvm {
0028 
0029 struct StripSymbolsPass : PassInfoMixin<StripSymbolsPass> {
0030   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0031 };
0032 
0033 struct StripNonDebugSymbolsPass : PassInfoMixin<StripNonDebugSymbolsPass> {
0034   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0035 };
0036 
0037 struct StripDebugDeclarePass : PassInfoMixin<StripDebugDeclarePass> {
0038   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0039 };
0040 
0041 struct StripDeadDebugInfoPass : PassInfoMixin<StripDeadDebugInfoPass> {
0042   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0043 };
0044 
0045 } // end namespace llvm
0046 
0047 #endif // LLVM_TRANSFORMS_IPO_STRIPSYMBOLS_H