mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 08:25:27 +00:00
Removed size_t from the parameter list of the malloc() prototype in generated C
code. This prevents a compiler warning on Sparc that causes the tests to fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -676,7 +676,7 @@ void CWriter::printModule(Module *M) {
|
|||||||
// Print Malloc prototype if needed
|
// Print Malloc prototype if needed
|
||||||
if (needsMalloc){
|
if (needsMalloc){
|
||||||
Out << "\n/* Malloc to make sun happy */\n";
|
Out << "\n/* Malloc to make sun happy */\n";
|
||||||
Out << "extern void * malloc(size_t);\n\n";
|
Out << "extern void * malloc();\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output the global variable declarations
|
// Output the global variable declarations
|
||||||
|
@@ -676,7 +676,7 @@ void CWriter::printModule(Module *M) {
|
|||||||
// Print Malloc prototype if needed
|
// Print Malloc prototype if needed
|
||||||
if (needsMalloc){
|
if (needsMalloc){
|
||||||
Out << "\n/* Malloc to make sun happy */\n";
|
Out << "\n/* Malloc to make sun happy */\n";
|
||||||
Out << "extern void * malloc(size_t);\n\n";
|
Out << "extern void * malloc();\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output the global variable declarations
|
// Output the global variable declarations
|
||||||
|
Reference in New Issue
Block a user