Skip to content

Commit

Permalink
[objc-arc] Added descriptions for EnableARCAnnotations, EnableCheckFo…
Browse files Browse the repository at this point in the history
…rCFGHazards, EnableARCOptimizations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179718 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gottesmm committed Apr 17, 2013
1 parent ba5d950 commit b271b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/Transforms/ObjCARC/ObjCARC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
9 changes: 6 additions & 3 deletions lib/Transforms/ObjCARC/ObjCARCOpts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b271b12

Please sign in to comment.