mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 17:24:57 +00:00
encode function calling convs in the bytecode file. invoke and call are
still to come. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1886,6 +1886,14 @@ void BytecodeReader::ParseModuleGlobalInfo() {
|
||||
if ((Flags & (1 << 4)) == 0)
|
||||
FunctionSignatureList.push_back(Func);
|
||||
|
||||
// Look at the low bits. If there is a calling conv here, apply it,
|
||||
// read it as a vbr.
|
||||
Flags &= 15;
|
||||
if (Flags)
|
||||
Func->setCallingConv(Flags-1);
|
||||
else
|
||||
Func->setCallingConv(read_vbr_uint());
|
||||
|
||||
if (Handler) Handler->handleFunctionDeclaration(Func);
|
||||
|
||||
// Get the next function signature.
|
||||
|
Reference in New Issue
Block a user