From eaa1aa72aa5ef1090e6c982638fbcd443c2c7085 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 26 Nov 2013 03:22:09 +0000 Subject: [PATCH] [PM] Re-format this code with clang-format before making substantial changes to it. No functionality changed. You may wonder why on earth touching this code is involved in the pass manager work as indicated by my lovely '[PM]' tag? Let me tell you a story. Yea, it's too long of a story. Let us say that there are yaks, many of them. I am busy shaving them as fast as I can. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195715 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DOTGraphTraitsPass.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/llvm/Analysis/DOTGraphTraitsPass.h b/include/llvm/Analysis/DOTGraphTraitsPass.h index 0fc1c2dc360..0dcbdec0329 100644 --- a/include/llvm/Analysis/DOTGraphTraitsPass.h +++ b/include/llvm/Analysis/DOTGraphTraitsPass.h @@ -23,11 +23,11 @@ template class DOTGraphTraitsViewer : public FunctionPass { public: DOTGraphTraitsViewer(StringRef GraphName, char &ID) - : FunctionPass(ID), Name(GraphName) {} + : FunctionPass(ID), Name(GraphName) {} virtual bool runOnFunction(Function &F) { Analysis *Graph = &getAnalysis(); - std::string GraphName = DOTGraphTraits::getGraphName(Graph); + std::string GraphName = DOTGraphTraits::getGraphName(Graph); std::string Title = GraphName + " for '" + F.getName().str() + "' function"; ViewGraph(Graph, Name, Simple, Title); @@ -48,7 +48,7 @@ template class DOTGraphTraitsPrinter : public FunctionPass { public: DOTGraphTraitsPrinter(StringRef GraphName, char &ID) - : FunctionPass(ID), Name(GraphName) {} + : FunctionPass(ID), Name(GraphName) {} virtual bool runOnFunction(Function &F) { Analysis *Graph = &getAnalysis(); @@ -58,7 +58,7 @@ public: errs() << "Writing '" << Filename << "'..."; raw_fd_ostream File(Filename.c_str(), ErrorInfo); - std::string GraphName = DOTGraphTraits::getGraphName(Graph); + std::string GraphName = DOTGraphTraits::getGraphName(Graph); std::string Title = GraphName + " for '" + F.getName().str() + "' function"; if (ErrorInfo.empty()) @@ -83,11 +83,11 @@ template class DOTGraphTraitsModuleViewer : public ModulePass { public: DOTGraphTraitsModuleViewer(StringRef GraphName, char &ID) - : ModulePass(ID), Name(GraphName) {} + : ModulePass(ID), Name(GraphName) {} virtual bool runOnModule(Module &M) { Analysis *Graph = &getAnalysis(); - std::string Title = DOTGraphTraits::getGraphName(Graph); + std::string Title = DOTGraphTraits::getGraphName(Graph); ViewGraph(Graph, Name, Simple, Title); @@ -107,7 +107,7 @@ template class DOTGraphTraitsModulePrinter : public ModulePass { public: DOTGraphTraitsModulePrinter(StringRef GraphName, char &ID) - : ModulePass(ID), Name(GraphName) {} + : ModulePass(ID), Name(GraphName) {} virtual bool runOnModule(Module &M) { Analysis *Graph = &getAnalysis(); @@ -117,7 +117,7 @@ public: errs() << "Writing '" << Filename << "'..."; raw_fd_ostream File(Filename.c_str(), ErrorInfo); - std::string Title = DOTGraphTraits::getGraphName(Graph); + std::string Title = DOTGraphTraits::getGraphName(Graph); if (ErrorInfo.empty()) WriteGraph(File, Graph, Simple, Title); -- 2.34.1