diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-01-29 22:29:59 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-01-29 22:29:59 +0000 |
commit | e52dec1695b694255db77a4b3ce1d5adb1f31d3d (patch) | |
tree | 280d3538c9c73c52a055e2407c8551202145a5e7 /llvm/lib/Transforms | |
parent | 8505c29593fb4db29103eddace10186741343b32 (diff) | |
download | bcm5719-llvm-e52dec1695b694255db77a4b3ce1d5adb1f31d3d.tar.gz bcm5719-llvm-e52dec1695b694255db77a4b3ce1d5adb1f31d3d.zip |
Made certain small functions in PtrState inlined.
llvm-svn: 173842
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index e6cd1a7ca9c..3bfb003df55 100644 --- a/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp @@ -451,31 +451,31 @@ namespace { PtrState() : KnownPositiveRefCount(false), Partial(false), Seq(S_None) {} - void SetKnownPositiveRefCount() { + inline void SetKnownPositiveRefCount() { KnownPositiveRefCount = true; } - void ClearRefCount() { + inline void ClearRefCount() { KnownPositiveRefCount = false; } - bool IsKnownIncremented() const { + inline bool IsKnownIncremented() const { return KnownPositiveRefCount; } - void SetSeq(Sequence NewSeq) { + inline void SetSeq(Sequence NewSeq) { Seq = NewSeq; } - Sequence GetSeq() const { + inline Sequence GetSeq() const { return Seq; } - void ClearSequenceProgress() { + inline void ClearSequenceProgress() { ResetSequenceProgress(S_None); } - void ResetSequenceProgress(Sequence NewSeq) { + inline void ResetSequenceProgress(Sequence NewSeq) { Seq = NewSeq; Partial = false; RRI.clear(); |