summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-10 02:14:14 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-10 02:14:14 +0000
commitb53becf6c893c122dcbff528c2e9e098dd648e2f (patch)
tree39c55b6e9ab85cffcf85d45008977ec6dbe80b73 /lib
parent1b497a9fc4854a451481d4d92c6fd49f6ac1ce5d (diff)
downloadllvm-b53becf6c893c122dcbff528c2e9e098dd648e2f.tar.gz
llvm-b53becf6c893c122dcbff528c2e9e098dd648e2f.tar.bz2
llvm-b53becf6c893c122dcbff528c2e9e098dd648e2f.tar.xz
[LCG] Ran clang-format over this too and it pointed out some fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/LazyCallGraph.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Analysis/LazyCallGraph.cpp b/lib/Analysis/LazyCallGraph.cpp
index 25dab840a2..ea213f27ac 100644
--- a/lib/Analysis/LazyCallGraph.cpp
+++ b/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)