1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Add extra declarations of hash_value needed to build llvm with xlc 12.1.

Patch by Kai!

llvm-svn: 167085
This commit is contained in:
Rafael Espindola 2012-10-31 00:46:18 +00:00
parent 240ead98fd
commit 79781084a5
3 changed files with 10 additions and 0 deletions

View 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 */

View File

@ -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

View File

@ -687,6 +687,9 @@ inline raw_ostream &operator<<(raw_ostream &OS, const MachineOperand& MO) {
return OS;
}
// See friend declaration above. This additional declaration is required in
// order to compile LLVM with IBM xlC compiler.
hash_code hash_value(const MachineOperand &MO);
} // End llvm namespace
#endif