aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-02-17 18:59:53 +0000
committerDan Gohman <gohman@apple.com>2012-02-17 18:59:53 +0000
commitdbe266be35cfee0fbda5523ac578fef81e8fdfcc (patch)
tree58a0c3fd21349f159faaa7c5400a0478904ee215 /include
parent3dc7c5138d219048d69952bead22f75efb984fa3 (diff)
downloadexternal_llvm-dbe266be35cfee0fbda5523ac578fef81e8fdfcc.zip
external_llvm-dbe266be35cfee0fbda5523ac578fef81e8fdfcc.tar.gz
external_llvm-dbe266be35cfee0fbda5523ac578fef81e8fdfcc.tar.bz2
Calls and invokes with the new clang.arc.no_objc_arc_exceptions
metadata may still unwind, but only in ways that the ARC optimizer doesn't need to consider. This permits more aggressive optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CFG.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h
index 6e354f9..f5dc8ea 100644
--- a/include/llvm/Support/CFG.h
+++ b/include/llvm/Support/CFG.h
@@ -71,6 +71,12 @@ public:
unsigned getOperandNo() const {
return It.getOperandNo();
}
+
+ /// getUse - Return the operand Use in the predecessor's terminator
+ /// of the successor.
+ Use &getUse() const {
+ return It.getUse();
+ }
};
typedef PredIterator<BasicBlock, Value::use_iterator> pred_iterator;