Add more operators.

llvm-svn: 14589
This commit is contained in:
Alkis Evlogimenos 2004-07-04 01:30:54 +00:00
parent 5d7966a0ea
commit b60ef8f308

View File

@ -80,6 +80,8 @@ public:
DataType operator--(int) { return Value--; }
const Statistic &operator+=(const DataType &V) { Value += V; return *this; }
const Statistic &operator-=(const DataType &V) { Value -= V; return *this; }
const Statistic &operator*=(const DataType &V) { Value *= V; return *this; }
const Statistic &operator/=(const DataType &V) { Value /= V; return *this; }
};
} // End llvm namespace