From 3a9b71434cda6f66d65a031effec1bbe58e1dda3 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 31 Oct 2012 00:46:18 +0000 Subject: 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 --- include/llvm/ADT/APFloat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/ADT/APFloat.h') diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index aff780f..31c6e6a 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 */ -- cgit v1.1