mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Switch from generating the int128 typedefs based on targetdata to generating
them based on the end-compiler's capabilities. This fixes PR2453 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5465cc59f0
commit
9e4ff94ff7
@ -1517,12 +1517,10 @@ static void generateCompilerSpecificCode(std::ostream& Out,
|
|||||||
// Output typedefs for 128-bit integers. If these are needed with a
|
// Output typedefs for 128-bit integers. If these are needed with a
|
||||||
// 32-bit target or with a C compiler that doesn't support mode(TI),
|
// 32-bit target or with a C compiler that doesn't support mode(TI),
|
||||||
// more drastic measures will be needed.
|
// more drastic measures will be needed.
|
||||||
if (TD->getPointerSize() >= 8) {
|
Out << "#if __GNUC__ && __LP64__ /* 128-bit integer types */\n"
|
||||||
Out << "#ifdef __GNUC__ /* 128-bit integer types */\n"
|
<< "typedef int __attribute__((mode(TI))) llvmInt128;\n"
|
||||||
<< "typedef int __attribute__((mode(TI))) llvmInt128;\n"
|
<< "typedef unsigned __attribute__((mode(TI))) llvmUInt128;\n"
|
||||||
<< "typedef unsigned __attribute__((mode(TI))) llvmUInt128;\n"
|
<< "#endif\n\n";
|
||||||
<< "#endif\n\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Output target-specific code that should be inserted into main.
|
// Output target-specific code that should be inserted into main.
|
||||||
Out << "#define CODE_FOR_MAIN() /* Any target-specific code for main()*/\n";
|
Out << "#define CODE_FOR_MAIN() /* Any target-specific code for main()*/\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user