[svn r280] Fixed a bunch of issues with switch statements. Ended up a bit far reaching...

This commit is contained in:
Tomas Lindquist Olsen
2008-06-14 05:13:49 +02:00
parent 1ae510ae6c
commit de89b4bc6f
10 changed files with 128 additions and 112 deletions

View File

@@ -192,7 +192,7 @@ Usage:\n\
-J<path> where to look for string imports\n\
-ignore ignore unsupported pragmas\n\
-inline do function inlining\n\
-Llinkerflag pass linkerflag to link\n\
-Llinkerflag pass linkerflag to llvm-ld\n\
-m<arch> emit code specific to <arch>\n\
x86 x86-64 ppc32 ppc64\n\
-noasm do not allow use of inline asm\n\

View File

@@ -2124,6 +2124,7 @@ CaseStatement::CaseStatement(Loc loc, Expression *exp, Statement *s)
this->statement = s;
cblock = NULL;
bodyBB = NULL;
llvmIdx = NULL;
}
Statement *CaseStatement::syntaxCopy()

View File

@@ -57,6 +57,7 @@ namespace llvm
{
class Value;
class BasicBlock;
class ConstantInt;
}
// Back end
@@ -453,6 +454,7 @@ struct CaseStatement : Statement
// LLVMDC
llvm::BasicBlock* bodyBB;
llvm::ConstantInt* llvmIdx;
};
struct DefaultStatement : Statement