summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/CodeGen/CodeGenFunction.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/clang/CodeGen/CodeGenFunction.h b/clang/CodeGen/CodeGenFunction.h
index f804aaa6262..67806d545a8 100644
--- a/clang/CodeGen/CodeGenFunction.h
+++ b/clang/CodeGen/CodeGenFunction.h
@@ -240,10 +240,14 @@ private:
};
llvm::SmallVector<BreakContinue, 8> BreakContinueStack;
- // SwitchInsn - This is used by EmitCaseStmt() and EmitDefaultStmt() to
- // populate switch instruction
+ /// SwitchInsn - This is used by EmitCaseStmt() and EmitDefaultStmt() to
+ /// populate switch instruction
llvm::SwitchInst *SwitchInsn;
+ /// CaseRangeBlock - This is used, while constructiong swtich instruction,
+ /// to hold "if" condition for case statement ranges.
+ llvm::BasicBlock *CaseRangeBlock;
+
public:
CodeGenFunction(CodeGenModule &cgm);
@@ -322,6 +326,7 @@ public:
void EmitSwitchStmt(const SwitchStmt &S);
void EmitDefaultStmt(const DefaultStmt &S);
void EmitCaseStmt(const CaseStmt &S);
+ void EmitCaseStmtRange(const CaseStmt &S);
//===--------------------------------------------------------------------===//
// LValue Expression Emission
OpenPOWER on IntegriCloud