mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-06 12:23:13 +01:00
[svn r280] Fixed a bunch of issues with switch statements. Ended up a bit far reaching...
This commit is contained in:
@@ -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\
|
||||
|
||||
@@ -2124,6 +2124,7 @@ CaseStatement::CaseStatement(Loc loc, Expression *exp, Statement *s)
|
||||
this->statement = s;
|
||||
cblock = NULL;
|
||||
bodyBB = NULL;
|
||||
llvmIdx = NULL;
|
||||
}
|
||||
|
||||
Statement *CaseStatement::syntaxCopy()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user