[llvm] r203435 - [LCG] Ran clang-format over this too and it pointed out some fixes.

Chandler Carruth chandlerc at gmail.com
Sun Mar 9 19:14:14 PDT 2014


Author: chandlerc
Date: Sun Mar  9 21:14:14 2014
New Revision: 203435

URL: http://llvm.org/viewvc/llvm-project?rev=203435&view=rev
Log:
[LCG] Ran clang-format over this too and it pointed out some fixes.

Modified:
    llvm/trunk/lib/Analysis/LazyCallGraph.cpp

Modified: llvm/trunk/lib/Analysis/LazyCallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyCallGraph.cpp?rev=203435&r1=203434&r2=203435&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyCallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyCallGraph.cpp Sun Mar  9 21:14:14 2014
@@ -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,
   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)





More information about the llvm-commits mailing list