[llvm-commits] [llvm] r167085 - in /llvm/trunk/include/llvm: ADT/APFloat.h ADT/APInt.h CodeGen/MachineOperand.h

Rafael Espindola rafael.espindola at gmail.com
Tue Oct 30 17:46:18 PDT 2012


Author: rafael
Date: Tue Oct 30 19:46:18 2012
New Revision: 167085

URL: http://llvm.org/viewvc/llvm-project?rev=167085&view=rev
Log:
Add extra declarations of hash_value needed to build llvm with xlc 12.1.
Patch by Kai!

Modified:
    llvm/trunk/include/llvm/ADT/APFloat.h
    llvm/trunk/include/llvm/ADT/APInt.h
    llvm/trunk/include/llvm/CodeGen/MachineOperand.h

Modified: llvm/trunk/include/llvm/ADT/APFloat.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APFloat.h?rev=167085&r1=167084&r2=167085&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Tue Oct 30 19:46:18 2012
@@ -456,6 +456,10 @@
     /* 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 */

Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=167085&r1=167084&r2=167085&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Tue Oct 30 19:46:18 2012
@@ -1780,6 +1780,9 @@
 
 } // 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

Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineOperand.h?rev=167085&r1=167084&r2=167085&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOperand.h Tue Oct 30 19:46:18 2012
@@ -687,6 +687,9 @@
   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





More information about the llvm-commits mailing list