mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 23:26:25 +00:00
because some functions just use va_start and pass things to vfprintf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -737,6 +737,17 @@ static PATypeHolder HandleUpRefs(const Type *ty) {
|
|||||||
Module *Result = ParserResult;
|
Module *Result = ParserResult;
|
||||||
ParserResult = 0;
|
ParserResult = 0;
|
||||||
|
|
||||||
|
//Not all functions use vaarg, so make a second check for ObsoleteVarArgs
|
||||||
|
{
|
||||||
|
Function* F;
|
||||||
|
if ((F = Result->getNamedFunction("llvm.va_start"))
|
||||||
|
&& F->getFunctionType()->getNumParams() == 0)
|
||||||
|
ObsoleteVarArgs = true;
|
||||||
|
if((F = Result->getNamedFunction("llvm.va_copy"))
|
||||||
|
&& F->getFunctionType()->getNumParams() == 1)
|
||||||
|
ObsoleteVarArgs = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (ObsoleteVarArgs && NewVarArgs)
|
if (ObsoleteVarArgs && NewVarArgs)
|
||||||
{
|
{
|
||||||
std::cerr << "This file is corrupt in that it uses both new and old style varargs\n";
|
std::cerr << "This file is corrupt in that it uses both new and old style varargs\n";
|
||||||
|
Reference in New Issue
Block a user