diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-10 02:14:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-10 02:14:14 +0000 |
commit | e9b50617b8a4a1dcb8c00683a90a96b18ce72485 (patch) | |
tree | aca4bef627f56d5c911b885d4acbbed222a57846 /llvm/lib | |
parent | 5ae74a6af2ca4f54fc216334b982862ecc4b8560 (diff) | |
download | bcm5719-llvm-e9b50617b8a4a1dcb8c00683a90a96b18ce72485.tar.gz bcm5719-llvm-e9b50617b8a4a1dcb8c00683a90a96b18ce72485.zip |
[LCG] Ran clang-format over this too and it pointed out some fixes.
llvm-svn: 203435
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/LazyCallGraph.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/LazyCallGraph.cpp b/llvm/lib/Analysis/LazyCallGraph.cpp index 25dab840a24..ea213f27acb 100644 --- a/llvm/lib/Analysis/LazyCallGraph.cpp +++ b/llvm/lib/Analysis/LazyCallGraph.cpp @@ -19,7 +19,7 @@ using namespace llvm; static void findCallees( SmallVectorImpl<Constant *> &Worklist, SmallPtrSetImpl<Constant *> &Visited, - SmallVectorImpl<PointerUnion<Function *, LazyCallGraph::Node *> > &Callees, + SmallVectorImpl<PointerUnion<Function *, LazyCallGraph::Node *>> &Callees, SmallPtrSetImpl<Function *> &CalleeSet) { while (!Worklist.empty()) { Constant *C = Worklist.pop_back_val(); @@ -36,7 +36,7 @@ static void findCallees( // strong definition's address would be an effective way to determine the // safety of optimizing a direct call edge. if (!F->isDeclaration() && CalleeSet.insert(F)) - Callees.push_back(F); + Callees.push_back(F); continue; } @@ -165,10 +165,12 @@ static void printNodes(raw_ostream &OS, LazyCallGraph::Node &N, OS << "\n"; } -PreservedAnalyses LazyCallGraphPrinterPass::run(Module *M, ModuleAnalysisManager *AM) { +PreservedAnalyses LazyCallGraphPrinterPass::run(Module *M, + ModuleAnalysisManager *AM) { LazyCallGraph &G = AM->getResult<LazyCallGraphAnalysis>(M); - OS << "Printing the call graph for module: " << M->getModuleIdentifier() << "\n\n"; + OS << "Printing the call graph for module: " << M->getModuleIdentifier() + << "\n\n"; SmallPtrSet<LazyCallGraph::Node *, 16> Printed; for (LazyCallGraph::Node *N : G) |