[objc-arc] Added descriptions for EnableARCAnnotations, EnableCheckForCFGHazards...
authorMichael Gottesman <mgottesman@apple.com>
Wed, 17 Apr 2013 20:48:03 +0000 (20:48 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Wed, 17 Apr 2013 20:48:03 +0000 (20:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179718 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ObjCARC/ObjCARC.cpp
lib/Transforms/ObjCARC/ObjCARCOpts.cpp

index 53a31b0de1784c5370e8947e80eaf6aa2043a7b9..373168e89888532c716d63bf7e3c07f7e6ac4a7e 100644 (file)
@@ -30,6 +30,7 @@ using namespace llvm::objcarc;
 bool llvm::objcarc::EnableARCOpts;
 static cl::opt<bool, true>
 EnableARCOptimizations("enable-objc-arc-opts",
+                       cl::desc("enable/disable all ARC Optimizations"),
                        cl::location(EnableARCOpts),
                        cl::init(true));
 
index bf1c93dc8db4383d3be840b5f6285895639d8fd1..5646e5285a2f7941986c6e46c876b765ccc1e881 100644 (file)
@@ -709,10 +709,13 @@ void BBState::MergeSucc(const BBState &Other) {
 
 /// Enable/disable ARC sequence annotations.
 static cl::opt<bool>
-EnableARCAnnotations("enable-objc-arc-annotations", cl::init(false));
+EnableARCAnnotations("enable-objc-arc-annotations", cl::init(false),
+                     cl::desc("Enable emission of arc data flow analysis "
+                              "annotations"));
 static cl::opt<bool>
-EnableCheckForCFGHazards("enable-objc-arc-checkforcfghazards",
-                         cl::init(true));
+EnableCheckForCFGHazards("enable-objc-arc-checkforcfghazards", cl::init(true),
+                         cl::desc("Disable check for cfg hazards when "
+                                  "annotating"));
 
 /// This function appends a unique ARCAnnotationProvenanceSourceMDKind id to an
 /// instruction so that we can track backwards when post processing via the llvm