Lines Matching defs:M
90 static void StripTypeNames(Module &M, bool PreserveDbgInfo) {
92 StructTypes.run(M, false);
119 static bool StripSymbolNames(Module &M, bool PreserveDbgInfo) {
122 findUsedValues(M.getGlobalVariable("llvm.used"), llvmUsedValues);
123 findUsedValues(M.getGlobalVariable("llvm.compiler.used"), llvmUsedValues);
125 for (GlobalVariable &GV : M.globals()) {
131 for (Function &I : M) {
140 StripTypeNames(M, PreserveDbgInfo);
145 static bool stripDebugDeclareImpl(Module &M) {
147 Function *Declare = M.getFunction("llvm.dbg.declare");
183 static bool stripDeadDebugInfoImpl(Module &M) {
186 LLVMContext &C = M.getContext();
193 F.processModule(M);
202 for (GlobalVariable &GV : M.globals()) {
211 for (const Function &F : M.functions()) {
215 LiveCUFinder.processInstruction(M, I);
258 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu");
270 PreservedAnalyses StripSymbolsPass::run(Module &M, ModuleAnalysisManager &AM) {
271 StripDebugInfo(M);
272 StripSymbolNames(M, false);
278 PreservedAnalyses StripNonDebugSymbolsPass::run(Module &M,
280 StripSymbolNames(M, true);
286 PreservedAnalyses StripDebugDeclarePass::run(Module &M,
288 stripDebugDeclareImpl(M);
294 PreservedAnalyses StripDeadDebugInfoPass::run(Module &M,
296 stripDeadDebugInfoImpl(M);