Add a unary minus operator.

llvm-svn: 123804
This commit is contained in:
Ken Dyck 2011-01-19 01:44:40 +00:00
parent 570243b5d9
commit 5d68663bfc
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ namespace clang {
CharUnits operator- (const CharUnits &Other) const {
return CharUnits(Quantity - Other.Quantity);
}
CharUnits operator- () const {
return CharUnits(-Quantity);
}
// Conversions.