parent
e05203fb40
commit
6292a056a8
|
@ -266,7 +266,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
|||
// FP Constants are printed as integer constants to avoid losing
|
||||
// precision...
|
||||
double Val = CFP->getValue();
|
||||
switch (CFP->getType()->getPrimitiveID()) {
|
||||
switch (CFP->getType()->getTypeID()) {
|
||||
default: assert(0 && "Unknown floating point type!");
|
||||
case Type::FloatTyID: {
|
||||
union FU { // Abide by C TBAA rules
|
||||
|
@ -313,7 +313,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
|||
|
||||
const Type *type = CV->getType();
|
||||
O << "\t";
|
||||
switch (type->getPrimitiveID()) {
|
||||
switch (type->getTypeID()) {
|
||||
case Type::UByteTyID: case Type::SByteTyID:
|
||||
O << ".byte";
|
||||
break;
|
||||
|
|
|
@ -266,7 +266,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
|||
// FP Constants are printed as integer constants to avoid losing
|
||||
// precision...
|
||||
double Val = CFP->getValue();
|
||||
switch (CFP->getType()->getPrimitiveID()) {
|
||||
switch (CFP->getType()->getTypeID()) {
|
||||
default: assert(0 && "Unknown floating point type!");
|
||||
case Type::FloatTyID: {
|
||||
union FU { // Abide by C TBAA rules
|
||||
|
@ -313,7 +313,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
|||
|
||||
const Type *type = CV->getType();
|
||||
O << "\t";
|
||||
switch (type->getPrimitiveID()) {
|
||||
switch (type->getTypeID()) {
|
||||
case Type::UByteTyID: case Type::SByteTyID:
|
||||
O << ".byte";
|
||||
break;
|
||||
|
|
|
@ -248,7 +248,7 @@ void PowerPCRegisterInfo::emitEpilogue(MachineFunction &MF,
|
|||
|
||||
const TargetRegisterClass*
|
||||
PowerPCRegisterInfo::getRegClassForType(const Type* Ty) const {
|
||||
switch (Ty->getPrimitiveID()) {
|
||||
switch (Ty->getTypeID()) {
|
||||
case Type::LongTyID:
|
||||
case Type::ULongTyID: assert(0 && "Long values can't fit in registers!");
|
||||
default: assert(0 && "Invalid type to getClass!");
|
||||
|
|
Loading…
Reference in New Issue