mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 14:53:14 +01:00
Cleanup: GCC warning fixes.
This commit is contained in:
@@ -178,7 +178,7 @@ namespace {
|
||||
Logger::cout() << "x86-64 ABI: Implicitly handled type: "
|
||||
<< ty->toChars() << '\n';
|
||||
// arrays, delegates, etc. (pointer-sized fields, <= 16 bytes)
|
||||
assert(offset == 0 || offset == 8
|
||||
assert((offset == 0 || offset == 8)
|
||||
&& "must be aligned and doesn't fit otherwise");
|
||||
assert(ty->size() % 8 == 0 && "Not a multiple of pointer size?");
|
||||
|
||||
@@ -484,7 +484,7 @@ bool X86_64TargetABI::passByVal(Type* t) {
|
||||
// http://llvm.org/bugs/show_bug.cgi?id=3741
|
||||
return true;
|
||||
} else {
|
||||
assert(t == Type::tfloat80 || t == Type::timaginary80 || t->ty == Tsarray || t->size() <= 8
|
||||
assert((t == Type::tfloat80 || t == Type::timaginary80 || t->ty == Tsarray || t->size() <= 8)
|
||||
&& "What other big types are there?");
|
||||
// In any case, they shouldn't be represented as structs in LLVM:
|
||||
assert(!isaStruct(DtoType(t)));
|
||||
|
||||
@@ -1404,7 +1404,6 @@ namespace AsmParserx8632
|
||||
// need clobber information.. use information is good too...
|
||||
void doInstruction()
|
||||
{
|
||||
bool ok = true;
|
||||
unsigned operand_i = 0;
|
||||
|
||||
opInfo = & asmOpInfo[op];
|
||||
@@ -1454,7 +1453,6 @@ namespace AsmParserx8632
|
||||
}
|
||||
else
|
||||
{
|
||||
ok = false;
|
||||
stmt->error ( "too many operands for instruction" );
|
||||
break;
|
||||
}
|
||||
@@ -1465,13 +1463,11 @@ namespace AsmParserx8632
|
||||
}
|
||||
else if ( token->value != TOKeof )
|
||||
{
|
||||
ok = false;
|
||||
stmt->error ( "expected comma after operand" );
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if (operand_i < opInfo->minOperands) {
|
||||
// ok = false;
|
||||
// stmt->error("too few operands for instruction");
|
||||
// }
|
||||
|
||||
|
||||
@@ -1518,7 +1518,6 @@ namespace AsmParserx8664
|
||||
// need clobber information.. use information is good too...
|
||||
void doInstruction()
|
||||
{
|
||||
bool ok = true;
|
||||
unsigned operand_i = 0;
|
||||
|
||||
opInfo = & asmOpInfo[op];
|
||||
@@ -1568,7 +1567,6 @@ namespace AsmParserx8664
|
||||
}
|
||||
else
|
||||
{
|
||||
ok = false;
|
||||
stmt->error ( "too many operands for instruction" );
|
||||
break;
|
||||
}
|
||||
@@ -1579,13 +1577,11 @@ namespace AsmParserx8664
|
||||
}
|
||||
else if ( token->value != TOKeof )
|
||||
{
|
||||
ok = false;
|
||||
stmt->error ( "expected comma after operand" );
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if (operand_i < opInfo->minOperands) {
|
||||
// ok = false;
|
||||
// stmt->error("too few operands for instruction");
|
||||
// }
|
||||
|
||||
|
||||
@@ -182,12 +182,6 @@ static void LLVM_D_BuildRuntimeModule()
|
||||
LLType* longTy = LLType::getInt64Ty(gIR->context());
|
||||
LLType* sizeTy = DtoSize_t();
|
||||
|
||||
LLType* realTy;
|
||||
if ((global.params.cpu == ARCHx86) || (global.params.cpu == ARCHx86_64))
|
||||
realTy = LLType::getX86_FP80Ty(gIR->context());
|
||||
else
|
||||
realTy = LLType::getDoubleTy(gIR->context());
|
||||
|
||||
LLType* voidPtrTy = rt_ptr(byteTy);
|
||||
LLType* voidArrayTy = rt_array(byteTy);
|
||||
LLType* voidArrayPtrTy = getPtrToType(voidArrayTy);
|
||||
|
||||
Reference in New Issue
Block a user