mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
External methods shouldn't have argument lists
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -349,6 +349,10 @@ bool BytecodeParser::ParseMethod(const uchar *&Buf, const uchar *EndBuf,
|
|||||||
// We don't need the placeholder anymore!
|
// We don't need the placeholder anymore!
|
||||||
delete MethPHolder;
|
delete MethPHolder;
|
||||||
|
|
||||||
|
// If the method is empty, we don't need the method argument entries...
|
||||||
|
if (M->isExternal())
|
||||||
|
M->getArgumentList().delete_all();
|
||||||
|
|
||||||
DeclareNewGlobalValue(M, MethSlot);
|
DeclareNewGlobalValue(M, MethSlot);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user