Add extra declarations of hash_value needed to build llvm with xlc 12.1.
[oota-llvm.git] / include / llvm / ADT / APFloat.h
index aff780f3fdf70314df605d61fa07792ba05f68b9..31c6e6adbfc6dceff39e69957eb9accd3fca0c25 100644 (file)
@@ -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 */