[cfe-commits] r42791 - /cfe/trunk/CodeGen/CodeGenFunction.h

Devang Patel dpatel at apple.com
Tue Oct 9 10:08:50 PDT 2007


Author: dpatel
Date: Tue Oct  9 12:08:50 2007
New Revision: 42791

URL: http://llvm.org/viewvc/llvm-project?rev=42791&view=rev
Log:
Fix comment. Describe what it is, instead of how it is used.

Modified:
    cfe/trunk/CodeGen/CodeGenFunction.h

Modified: cfe/trunk/CodeGen/CodeGenFunction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenFunction.h?rev=42791&r1=42790&r2=42791&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CodeGenFunction.h (original)
+++ cfe/trunk/CodeGen/CodeGenFunction.h Tue Oct  9 12:08:50 2007
@@ -240,12 +240,12 @@
   }; 
   llvm::SmallVector<BreakContinue, 8> BreakContinueStack;
   
-  /// SwitchInsn - This is used by EmitCaseStmt() and EmitDefaultStmt() to
-  /// populate switch instruction
+  /// SwitchInsn - This is nearest current switch instruction. It is null if
+  /// if current context is not in a switch.
   llvm::SwitchInst *SwitchInsn;
 
-  /// CaseRangeBlock - This is used, while constructiong swtich instruction,
-  /// to hold "if" condition for case statement ranges.
+  /// CaseRangeBlock - This block holds if condition check for last case 
+  /// statement range in current switch instruction.
   llvm::BasicBlock *CaseRangeBlock;
 
 public:





More information about the cfe-commits mailing list