Add extra declarations of hash_value needed to build llvm with xlc 12.1.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 31 Oct 2012 00:46:18 +0000 (00:46 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 31 Oct 2012 00:46:18 +0000 (00:46 +0000)
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
include/llvm/ADT/APInt.h
include/llvm/CodeGen/MachineOperand.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 */
index 90114e2b84b7111800b34488e3a15b365ff349f8..c7c8016b833997ede6f2c1b3e808c280fcc5f09b 100644 (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
index 5a182101c1349ff6c1836b73f4589867553bfc45..606833cd4081090f0bcff80d4b1583fa7a6bf64b 100644 (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