Made certain small functions in PtrState inlined.

llvm-svn: 173842
This commit is contained in:
Michael Gottesman 2013-01-29 22:29:59 +00:00
parent 8505c29593
commit e52dec1695
1 changed files with 7 additions and 7 deletions

View File

@ -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();