Add comdat key field to llvm.global_ctors and llvm.global_dtors
[oota-llvm.git] / lib / Transforms / ObjCARC / ObjCARCExpand.cpp
index a65367aa6ecc68b8a984c7fa0e9b415d832f4419..bf9fcbb5c90741cf8cfb504fcf16c302ec2d8348 100644 (file)
 ///
 //===----------------------------------------------------------------------===//
 
-#define DEBUG_TYPE "objc-arc-expand"
 #include "ObjCARC.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/IR/Function.h"
+#include "llvm/IR/InstIterator.h"
+#include "llvm/IR/Instruction.h"
+#include "llvm/IR/Instructions.h"
+#include "llvm/IR/Value.h"
+#include "llvm/Pass.h"
+#include "llvm/PassAnalysisSupport.h"
+#include "llvm/PassRegistry.h"
+#include "llvm/PassSupport.h"
+#include "llvm/Support/Casting.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
+
+#define DEBUG_TYPE "objc-arc-expand"
+
+namespace llvm {
+  class Module;
+}
 
 using namespace llvm;
 using namespace llvm::objcarc;
@@ -32,9 +50,9 @@ using namespace llvm::objcarc;
 namespace {
   /// \brief Early ARC transformations.
   class ObjCARCExpand : public FunctionPass {
-    virtual void getAnalysisUsage(AnalysisUsage &AU) const;
-    virtual bool doInitialization(Module &M);
-    virtual bool runOnFunction(Function &F);
+    void getAnalysisUsage(AnalysisUsage &AU) const override;
+    bool doInitialization(Module &M) override;
+    bool runOnFunction(Function &F) override;
 
     /// A flag indicating whether this optimization pass should run.
     bool Run;
@@ -108,6 +126,3 @@ bool ObjCARCExpand::runOnFunction(Function &F) {
 
   return Changed;
 }
-
-/// @}
-///