implement codegen support for return of void and simple scalars.
llvm-svn: 39547
diff --git a/clang/CodeGen/CodeGenFunction.h b/clang/CodeGen/CodeGenFunction.h
index 6e042d9..fb7e72a 100644
--- a/clang/CodeGen/CodeGenFunction.h
+++ b/clang/CodeGen/CodeGenFunction.h
@@ -30,6 +30,7 @@
class LabelStmt;
class GotoStmt;
class IfStmt;
+ class ReturnStmt;
class Expr;
class IntegerLiteral;
@@ -80,6 +81,8 @@
CodeGenModule &CGM; // Per-module state.
TargetInfo &Target;
LLVMBuilder Builder;
+
+ const FunctionDecl *CurFuncDecl;
llvm::Function *CurFn;
/// LabelMap - This keeps track of the LLVM basic block for each C label.
@@ -108,6 +111,7 @@
void EmitLabelStmt(const LabelStmt &S);
void EmitGotoStmt(const GotoStmt &S);
void EmitIfStmt(const IfStmt &S);
+ void EmitReturnStmt(const ReturnStmt &S);
//===--------------------------------------------------------------------===//
// Expression Emission