summaryrefslogtreecommitdiff
path: root/src/pdacodegen.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-11-05 16:38:46 -0500
committerAdrian Thurston <thurston@complang.org>2014-11-05 16:38:46 -0500
commitc20284bb779dee69799a09c6257f80c2ab868aec (patch)
tree03c2804b6d1aba527fb496875ca9949ca647ec1a /src/pdacodegen.cc
parentf7f9e0dd3dbe41772677556fff9f25fd51d64356 (diff)
downloadcolm-c20284bb779dee69799a09c6257f80c2ab868aec.tar.gz
print the func we are returning to in IN_RET
Diffstat (limited to 'src/pdacodegen.cc')
-rw-r--r--src/pdacodegen.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pdacodegen.cc b/src/pdacodegen.cc
index 0d9a2807..b420ab82 100644
--- a/src/pdacodegen.cc
+++ b/src/pdacodegen.cc
@@ -204,6 +204,12 @@ void PdaCodeGen::writeRuntimeData( RuntimeData *runtimeData, PdaTables *pdaTable
for ( int i = 0; i < runtimeData->numFrames; i++ ) {
out << "\t{ ";
+ /* The Name. */
+ if ( runtimeData->frameInfo[i].name )
+ out << "\"" << runtimeData->frameInfo[i].name << "\", ";
+ else
+ out << "\"\", ";
+
if ( runtimeData->frameInfo[i].codeLenWV > 0 )
out << "code_" << i << "_wv, ";
else
@@ -308,7 +314,6 @@ void PdaCodeGen::writeRuntimeData( RuntimeData *runtimeData, PdaTables *pdaTable
out << "static FunctionInfo " << functionInfo() << "[] = {\n";
for ( int i = 0; i < runtimeData->numFunctions; i++ ) {
out << "\t{ " <<
- "\"" << runtimeData->functionInfo[i].name << "\", " <<
runtimeData->functionInfo[i].frameId << ", " <<
runtimeData->functionInfo[i].argSize << ", " <<
runtimeData->functionInfo[i].frameSize;