diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-31 00:46:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-31 00:46:18 +0000 |
commit | 3a9b71434cda6f66d65a031effec1bbe58e1dda3 (patch) | |
tree | 6a0ebbd86086f38108913ef7169d94085b8568d4 /include/llvm/ADT | |
parent | 462d1ca42831df53a3c6435d247776f0b85bd594 (diff) | |
download | llvm-3a9b71434cda6f66d65a031effec1bbe58e1dda3.tar.gz llvm-3a9b71434cda6f66d65a031effec1bbe58e1dda3.tar.bz2 llvm-3a9b71434cda6f66d65a031effec1bbe58e1dda3.tar.xz |
Add extra declarations of hash_value needed to build llvm with xlc 12.1.
Patch by Kai!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 4 | ||||
-rw-r--r-- | include/llvm/ADT/APInt.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index aff780f3fd..31c6e6adbf 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -456,6 +456,10 @@ namespace llvm { /* The sign bit of this number. */ unsigned int sign: 1; }; + + // See friend declaration above. This additional declaration is required in + // order to compile LLVM with IBM xlC compiler. + hash_code hash_value(const APFloat &Arg); } /* namespace llvm */ #endif /* LLVM_FLOAT_H */ diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 90114e2b84..c7c8016b83 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -1780,6 +1780,9 @@ inline APInt Not(const APInt& APIVal) { } // End of APIntOps namespace + // See friend declaration above. This additional declaration is required in + // order to compile LLVM with IBM xlC compiler. + hash_code hash_value(const APInt &Arg); } // End of llvm namespace #endif |