Fix a FIXME about the format and add a test.
[oota-llvm.git] / lib / Transforms / ObjCARC / ObjCARCAPElim.cpp
index fe6406a0354193bbeb28b58d7731fdd4627964f1..00d9864953dc53dafc003362827ad8f3bd58394d 100644 (file)
@@ -1,4 +1,4 @@
-//===- ObjCARCOpts.cpp - ObjC ARC Optimization ----------------------------===//
+//===- ObjCARCAPElim.cpp - ObjC ARC Optimization --------------------------===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -7,17 +7,13 @@
 //
 //===----------------------------------------------------------------------===//
 /// \file
+///
 /// This file defines ObjC ARC optimizations. ARC stands for Automatic
 /// Reference Counting and is a system for managing reference counts for objects
 /// in Objective C.
 ///
-/// The optimizations performed include elimination of redundant, partially
-/// redundant, and inconsequential reference count operations, elimination of
-/// redundant weak pointer operations, pattern-matching and replacement of
-/// low-level operations into higher-level operations, and numerous minor
-/// simplifications.
-///
-/// This file also defines a simple ARC-aware AliasAnalysis.
+/// This specific file implements optimizations which remove extraneous
+/// autorelease pools.
 ///
 /// WARNING: This file knows about certain library functions. It recognizes them
 /// by name, and hardwires knowledge of their semantics.
@@ -32,6 +28,8 @@
 #include "ObjCARC.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/IR/Constants.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
 using namespace llvm::objcarc;