Mercurial > hg > CbC > CbC_llvm
changeset 50:bd668f746740
add CbCHelper.h
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Jan 2014 16:42:07 +0900 |
parents | c0c81d8e222e |
children | c8f628ba8e9a |
files | tools/clang/lib/Parse/CbCHelper.h tools/clang/lib/Parse/ParseStmt.cpp |
diffstat | 2 files changed, 22 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/clang/lib/Parse/CbCHelper.h Tue Jan 14 16:42:07 2014 +0900 @@ -0,0 +1,21 @@ +#ifndef _CBC_HELPER_IS_INCLUDED +#define _CBC_HELPER_IS_INCLUDED + +#define __CBC_ENVIRONMENT_NAME "__CbC_environment" +#define __CBC_ENVIRONMENT_LENGTH 17 +#define __CBC_RETURN_NAME "__CbC_return" +#define __CBC_RETURN_LENGTH 12 +#define __JMP_BUF_SIZE "128" +#define __JMP_BUF_SIZE_LENGTH 3 +#define __CBC_BUF_NAME "env_buf" +#define __CBC_BUF_LENGTH 7 +#define __CBC_RETVAL_NAME "retval" +#define __CBC_RETVAL_LENGTH 6 +#define __CBC_STRUCT_NAME "__CbC_env" +#define __CBC_STRUCT_LENGTH 9 +#define __CBC_STRUCT_ENV_NAME "env" +#define __CBC_STRUCT_ENV_LENGTH 3 +#define __CBC_STRUCT_POINTER_NAME "ret_p" +#define __CBC_STRUCT_POINTER_LENGTH 5 + +#endif
--- a/tools/clang/lib/Parse/ParseStmt.cpp Mon Jan 13 23:04:29 2014 +0900 +++ b/tools/clang/lib/Parse/ParseStmt.cpp Tue Jan 14 16:42:07 2014 +0900 @@ -1705,7 +1705,7 @@ Stmtsp = &Stmts; gotoRes = ParseStatementOrDeclaration(Stmts, false); - if (gotoRes.get()->getStmtClass() != Stmt::CallExprClass) { // isFunctionCall ? + if (gotoRes.get()->getStmtClass() != Stmt::CallExprClass) { // if it is not function call Diag(TokAfterGoto, diag::err_expected_ident_or_cs); return StmtError(); }