Fix the BitCastUnion type for 32-bit targets.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 12 Dec 2006 00:11:08 +0000 (00:11 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 12 Dec 2006 00:11:08 +0000 (00:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 5d7f762efe91b7192470f8339033826ffa28d2cb..96fc53948b32a33d5d3c4c3977d0a1128392e6b7 100644 (file)
@@ -1510,12 +1510,12 @@ void CWriter::printFloatingPointConstants(Function &F) {
 void CWriter::printModuleTypes(const SymbolTable &ST) {
   Out << "/* Helper union for bitcasts */\n";
   Out << "typedef union {\n";
-  Out << "  unsigned int  UInt;\n";
-  Out << "    signed int  SInt;\n";
-  Out << "  unsigned long ULong;\n";
-  Out << "    signed long SLong;\n";
-  Out << "          float Float;\n";
-  Out << "         double Double;\n";
+  Out << "  unsigned int UInt;\n";
+  Out << "  signed int SInt;\n";
+  Out << "  unsigned long long ULong;\n";
+  Out << "  signed long long SLong;\n";
+  Out << "  float Float;\n";
+  Out << "  double Double;\n";
   Out << "} llvmBitCastUnion;\n";
 
   // We are only interested in the type plane of the symbol table.
index 5d7f762efe91b7192470f8339033826ffa28d2cb..96fc53948b32a33d5d3c4c3977d0a1128392e6b7 100644 (file)
@@ -1510,12 +1510,12 @@ void CWriter::printFloatingPointConstants(Function &F) {
 void CWriter::printModuleTypes(const SymbolTable &ST) {
   Out << "/* Helper union for bitcasts */\n";
   Out << "typedef union {\n";
-  Out << "  unsigned int  UInt;\n";
-  Out << "    signed int  SInt;\n";
-  Out << "  unsigned long ULong;\n";
-  Out << "    signed long SLong;\n";
-  Out << "          float Float;\n";
-  Out << "         double Double;\n";
+  Out << "  unsigned int UInt;\n";
+  Out << "  signed int SInt;\n";
+  Out << "  unsigned long long ULong;\n";
+  Out << "  signed long long SLong;\n";
+  Out << "  float Float;\n";
+  Out << "  double Double;\n";
   Out << "} llvmBitCastUnion;\n";
 
   // We are only interested in the type plane of the symbol table.