[llvm] r203434 - [PM] While I'm here, fix a few other clang-format issues. Pulls some

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


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

URL: http://llvm.org/viewvc/llvm-project?rev=203434&view=rev
Log:
[PM] While I'm here, fix a few other clang-format issues. Pulls some
lines under 80-columns, etc.

Modified:
    llvm/trunk/lib/IR/PassManager.cpp
    llvm/trunk/unittests/IR/PassManagerTest.cpp

Modified: llvm/trunk/lib/IR/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/PassManager.cpp?rev=203434&r1=203433&r2=203434&view=diff
==============================================================================
--- llvm/trunk/lib/IR/PassManager.cpp (original)
+++ llvm/trunk/lib/IR/PassManager.cpp Sun Mar  9 21:12:14 2014
@@ -57,7 +57,8 @@ ModuleAnalysisManager::getResultImpl(voi
 
 ModuleAnalysisManager::ResultConceptT *
 ModuleAnalysisManager::getCachedResultImpl(void *PassID, Module *M) const {
-  ModuleAnalysisResultMapT::const_iterator RI = ModuleAnalysisResults.find(PassID);
+  ModuleAnalysisResultMapT::const_iterator RI =
+      ModuleAnalysisResults.find(PassID);
   return RI == ModuleAnalysisResults.end() ? 0 : &*RI->second;
 }
 
@@ -76,7 +77,8 @@ void ModuleAnalysisManager::invalidateIm
       ModuleAnalysisResults.erase(I);
 }
 
-PreservedAnalyses FunctionPassManager::run(Function *F, FunctionAnalysisManager *AM) {
+PreservedAnalyses FunctionPassManager::run(Function *F,
+                                           FunctionAnalysisManager *AM) {
   PreservedAnalyses PA = PreservedAnalyses::all();
 
   if (DebugPM)

Modified: llvm/trunk/unittests/IR/PassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/PassManagerTest.cpp?rev=203434&r1=203433&r2=203434&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/PassManagerTest.cpp (original)
+++ llvm/trunk/unittests/IR/PassManagerTest.cpp Sun Mar  9 21:12:14 2014
@@ -58,7 +58,7 @@ public:
     int FunctionCount;
   };
 
-  static void *ID() { return (void * )&PassID; }
+  static void *ID() { return (void *)&PassID; }
 
   TestModuleAnalysis(int &Runs) : Runs(Runs) {}
 
@@ -92,9 +92,7 @@ struct TestModulePass {
 };
 
 struct TestPreservingModulePass {
-  PreservedAnalyses run(Module *M) {
-    return PreservedAnalyses::all();
-  }
+  PreservedAnalyses run(Module *M) { return PreservedAnalyses::all(); }
 
   static StringRef name() { return "TestPreservingModulePass"; }
 };





More information about the llvm-commits mailing list