llvm.org GIT mirror llvm / c5677ed
Whitespace. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251724 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 3 years ago
4 changed file(s) with 6 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
246246 void initializeScalarEvolutionWrapperPassPass(PassRegistry&);
247247 void initializeShrinkWrapPass(PassRegistry &);
248248 void initializeSimpleInlinerPass(PassRegistry&);
249 void initializeShadowStackGCLoweringPass(PassRegistry&);
249 void initializeShadowStackGCLoweringPass(PassRegistry&);
250250 void initializeRegisterCoalescerPass(PassRegistry&);
251251 void initializeSingleLoopExtractorPass(PassRegistry&);
252252 void initializeSinkingPass(PassRegistry&);
66 //
77 //===----------------------------------------------------------------------===//
88 //
9 // This file implements the common infrastructure (including C bindings) for
10 // libLLVMIPO.a, which implements several transformations over the LLVM
9 // This file implements the common infrastructure (including C bindings) for
10 // libLLVMIPO.a, which implements several transformations over the LLVM
1111 // intermediate representation.
1212 //
1313 //===----------------------------------------------------------------------===//
66 //
77 //===----------------------------------------------------------------------===//
88 //
9 // This pass loops over all of the functions in the input module, looking for
9 // This pass loops over all of the functions in the input module, looking for
1010 // dead declarations and removes them. Dead declarations are declarations of
1111 // functions for which no implementation is available (i.e., declarations for
1212 // unused library functions).
4343
4444 bool StripDeadPrototypesPass::runOnModule(Module &M) {
4545 bool MadeChange = false;
46
46
4747 // Erase dead function prototypes.
4848 for (Module::iterator I = M.begin(), E = M.end(); I != E; ) {
4949 Function *F = &*I++;
6363 if (GV->isDeclaration() && GV->use_empty())
6464 GV->eraseFromParent();
6565 }
66
66
6767 // Return an indication of whether we changed anything or not.
6868 return MadeChange;
6969 }
1414 %X = phi i32 [ %A, %BB1 ] ; [#uses=1]
1515 br label %BB3
1616 }
17
18