mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
Fix the BitCastUnion type for 32-bit targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32453 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4dfab986ab
commit
22b36fb7eb
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user