[PM/AA] Run clang-format over the ObjCARC Alias Analysis code to
authorChandler Carruth <chandlerc@gmail.com>
Fri, 14 Aug 2015 03:57:00 +0000 (03:57 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 14 Aug 2015 03:57:00 +0000 (03:57 +0000)
normalize its formatting before I make more substantial changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp
lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h

index d34badd4f83c5131486f386fc8d717de2902649b..7de4b7f8b9de40ec7a0a809c6c53c90f670d0083 100644 (file)
@@ -48,8 +48,7 @@ bool ObjCARCAliasAnalysis::doInitialization(Module &M) {
   return true;
 }
 
   return true;
 }
 
-void
-ObjCARCAliasAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
+void ObjCARCAliasAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
   AU.setPreservesAll();
   AliasAnalysis::getAnalysisUsage(AU);
 }
   AU.setPreservesAll();
   AliasAnalysis::getAnalysisUsage(AU);
 }
index a002e2862f973facd6726a498454d4f75e4c7aa3..5e75c65dd39ddefd2bcc523516b5542944e58c37 100644 (file)
 namespace llvm {
 namespace objcarc {
 
 namespace llvm {
 namespace objcarc {
 
-  /// \brief This is a simple alias analysis implementation that uses knowledge
-  /// of ARC constructs to answer queries.
-  ///
-  /// TODO: This class could be generalized to know about other ObjC-specific
-  /// tricks. Such as knowing that ivars in the non-fragile ABI are non-aliasing
-  /// even though their offsets are dynamic.
-  class ObjCARCAliasAnalysis : public ImmutablePass,
-                               public AliasAnalysis {
-  public:
-    static char ID; // Class identification, replacement for typeinfo
-    ObjCARCAliasAnalysis() : ImmutablePass(ID) {
-      initializeObjCARCAliasAnalysisPass(*PassRegistry::getPassRegistry());
-    }
+/// \brief This is a simple alias analysis implementation that uses knowledge
+/// of ARC constructs to answer queries.
+///
+/// TODO: This class could be generalized to know about other ObjC-specific
+/// tricks. Such as knowing that ivars in the non-fragile ABI are non-aliasing
+/// even though their offsets are dynamic.
+class ObjCARCAliasAnalysis : public ImmutablePass, public AliasAnalysis {
+public:
+  static char ID; // Class identification, replacement for typeinfo
+  ObjCARCAliasAnalysis() : ImmutablePass(ID) {
+    initializeObjCARCAliasAnalysisPass(*PassRegistry::getPassRegistry());
+  }
 
 
-  private:
-    bool doInitialization(Module &M) override;
+private:
+  bool doInitialization(Module &M) override;
 
 
-    /// This method is used when a pass implements an analysis interface through
-    /// multiple inheritance.  If needed, it should override this to adjust the
-    /// this pointer as needed for the specified pass info.
-    void *getAdjustedAnalysisPointer(const void *PI) override {
-      if (PI == &AliasAnalysis::ID)
-        return static_cast<AliasAnalysis *>(this);
-      return this;
-    }
+  /// This method is used when a pass implements an analysis interface through
+  /// multiple inheritance.  If needed, it should override this to adjust the
+  /// this pointer as needed for the specified pass info.
+  void *getAdjustedAnalysisPointer(const void *PI) override {
+    if (PI == &AliasAnalysis::ID)
+      return static_cast<AliasAnalysis *>(this);
+    return this;
+  }
 
 
-    void getAnalysisUsage(AnalysisUsage &AU) const override;
-    AliasResult alias(const MemoryLocation &LocA,
-                      const MemoryLocation &LocB) override;
-    bool pointsToConstantMemory(const MemoryLocation &Loc,
-                                bool OrLocal) override;
-    FunctionModRefBehavior getModRefBehavior(ImmutableCallSite CS) override;
-    FunctionModRefBehavior getModRefBehavior(const Function *F) override;
-    ModRefInfo getModRefInfo(ImmutableCallSite CS,
-                             const MemoryLocation &Loc) override;
-    ModRefInfo getModRefInfo(ImmutableCallSite CS1,
-                             ImmutableCallSite CS2) override;
-  };
+  void getAnalysisUsage(AnalysisUsage &AU) const override;
+  AliasResult alias(const MemoryLocation &LocA,
+                    const MemoryLocation &LocB) override;
+  bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal) override;
+  FunctionModRefBehavior getModRefBehavior(ImmutableCallSite CS) override;
+  FunctionModRefBehavior getModRefBehavior(const Function *F) override;
+  ModRefInfo getModRefInfo(ImmutableCallSite CS,
+                           const MemoryLocation &Loc) override;
+  ModRefInfo getModRefInfo(ImmutableCallSite CS1,
+                           ImmutableCallSite CS2) override;
+};
 
 } // namespace objcarc
 } // namespace llvm
 
 } // namespace objcarc
 } // namespace llvm