diff options
author | John McCall <rjmccall@apple.com> | 2010-08-14 07:46:19 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-14 07:46:19 +0000 |
commit | 32427785c0cc268df7b13fa799a63c9360335039 (patch) | |
tree | 27014abd28bf35117e5d08a76629f431cdbdcf18 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | bffc757df713fb1799d389a309a1c7192bb13c0c (diff) | |
download | bcm5719-llvm-32427785c0cc268df7b13fa799a63c9360335039.tar.gz bcm5719-llvm-32427785c0cc268df7b13fa799a63c9360335039.zip |
More cleanup enabling.
llvm-svn: 111070
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 3d212b5f782..a7c3a289daf 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -127,7 +127,15 @@ public: bool isValid() const { return Size >= 0; } + /// Returns true if this scope encloses I. + /// Returns false if I is invalid. + /// This scope must be valid. bool encloses(stable_iterator I) const { return Size <= I.Size; } + + /// Returns true if this scope strictly encloses I: that is, + /// if it encloses I and is not I. + /// Returns false is I is invalid. + /// This scope must be valid. bool strictlyEncloses(stable_iterator I) const { return Size < I.Size; } friend bool operator==(stable_iterator A, stable_iterator B) { @@ -317,6 +325,7 @@ public: stable_iterator getInnermostNormalCleanup() const { return InnermostNormalCleanup; } + stable_iterator getInnermostActiveNormalCleanup() const; // CGException.h /// Determines whether there are any EH cleanups on the stack. bool hasEHCleanups() const { @@ -328,6 +337,7 @@ public: stable_iterator getInnermostEHCleanup() const { return InnermostEHCleanup; } + stable_iterator getInnermostActiveEHCleanup() const; // CGException.h /// An unstable reference to a scope-stack depth. Invalidated by /// pushes but not pops. |