[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 6 13:43:12 PDT 2005
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.160 -> 1.161
---
Log message:
encode function calling convs in the bytecode file. invoke and call are
still to come.
---
Diffs of the changes: (+8 -0)
Reader.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.160 llvm/lib/Bytecode/Reader/Reader.cpp:1.161
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.160 Fri May 6 01:13:32 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp Fri May 6 15:42:55 2005
@@ -1886,6 +1886,14 @@
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.
More information about the llvm-commits
mailing list