mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Unbreak the build on win32.
Cleanup some warning. Remark: when struct/class are declared differently than they are defined, this make problem for VC++ since it seems to mangle class differently that struct. These error are very hard to understand and find. So please, try to keep your definition/declaration in sync. Only tested with VS2008. hope it does not break anything. feel free to revert. llvm-svn: 64554
This commit is contained in:
parent
5aeb9b727a
commit
48be6b5e15
@ -27,8 +27,8 @@ namespace llvm {
|
|||||||
class Module;
|
class Module;
|
||||||
class Type;
|
class Type;
|
||||||
class Value;
|
class Value;
|
||||||
class DbgStopPointInst;
|
struct DbgStopPointInst;
|
||||||
class DbgDeclareInst;
|
struct DbgDeclareInst;
|
||||||
class Instruction;
|
class Instruction;
|
||||||
|
|
||||||
class DIDescriptor {
|
class DIDescriptor {
|
||||||
|
@ -217,7 +217,7 @@ namespace llvm {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// SUnit - Scheduling unit. This is a node in the scheduling DAG.
|
/// SUnit - Scheduling unit. This is a node in the scheduling DAG.
|
||||||
struct SUnit {
|
class SUnit {
|
||||||
private:
|
private:
|
||||||
SDNode *Node; // Representative node.
|
SDNode *Node; // Representative node.
|
||||||
MachineInstr *Instr; // Alternatively, a MachineInstr.
|
MachineInstr *Instr; // Alternatively, a MachineInstr.
|
||||||
|
@ -25,7 +25,7 @@ class PHINode;
|
|||||||
class AllocaInst;
|
class AllocaInst;
|
||||||
class ConstantExpr;
|
class ConstantExpr;
|
||||||
class TargetData;
|
class TargetData;
|
||||||
class DbgInfoIntrinsic;
|
struct DbgInfoIntrinsic;
|
||||||
|
|
||||||
template<typename T> class SmallVectorImpl;
|
template<typename T> class SmallVectorImpl;
|
||||||
|
|
||||||
|
@ -4718,8 +4718,9 @@ isAllocatableRegister(unsigned Reg, MachineFunction &MF,
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
/// AsmOperandInfo - This contains information for each constraint that we are
|
/// AsmOperandInfo - This contains information for each constraint that we are
|
||||||
/// lowering.
|
/// lowering.
|
||||||
struct VISIBILITY_HIDDEN SDISelAsmOperandInfo :
|
class VISIBILITY_HIDDEN SDISelAsmOperandInfo :
|
||||||
public TargetLowering::AsmOperandInfo {
|
public TargetLowering::AsmOperandInfo {
|
||||||
|
public:
|
||||||
/// CallOperand - If this is the result output operand or a clobber
|
/// CallOperand - If this is the result output operand or a clobber
|
||||||
/// this is null, otherwise it is the incoming operand to the CallInst.
|
/// this is null, otherwise it is the incoming operand to the CallInst.
|
||||||
/// This gets modified as the asm is processed.
|
/// This gets modified as the asm is processed.
|
||||||
|
@ -1239,7 +1239,7 @@ APFloat::addOrSubtractSpecials(const APFloat &rhs, bool subtract)
|
|||||||
case convolve(fcInfinity, fcInfinity):
|
case convolve(fcInfinity, fcInfinity):
|
||||||
/* Differently signed infinities can only be validly
|
/* Differently signed infinities can only be validly
|
||||||
subtracted. */
|
subtracted. */
|
||||||
if((sign ^ rhs.sign) != subtract) {
|
if(((sign ^ rhs.sign)!=0) != subtract) {
|
||||||
makeNaN();
|
makeNaN();
|
||||||
return opInvalidOp;
|
return opInvalidOp;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ int sys::AlarmStatus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Don't pull in all of the Windows headers.
|
// Don't pull in all of the Windows headers.
|
||||||
extern "C" _stdcall void Sleep(unsigned long);
|
extern "C" void __stdcall Sleep(unsigned long);
|
||||||
|
|
||||||
void sys::Sleep(unsigned n) {
|
void sys::Sleep(unsigned n) {
|
||||||
Sleep(n*1000);
|
Sleep(n*1000);
|
||||||
|
@ -124,7 +124,7 @@ bool TGParser::SetValue(Record *CurRec, LocTy Loc, const std::string &ValName,
|
|||||||
|
|
||||||
/// AddSubClass - Add SubClass as a subclass to CurRec, resolving its template
|
/// AddSubClass - Add SubClass as a subclass to CurRec, resolving its template
|
||||||
/// args as SubClass's template arguments.
|
/// args as SubClass's template arguments.
|
||||||
bool TGParser::AddSubClass(Record *CurRec, class SubClassReference &SubClass) {
|
bool TGParser::AddSubClass(Record *CurRec, SubClassReference &SubClass) {
|
||||||
Record *SC = SubClass.Rec;
|
Record *SC = SubClass.Rec;
|
||||||
// Add all of the values in the subclass into the current class.
|
// Add all of the values in the subclass into the current class.
|
||||||
const std::vector<RecordVal> &Vals = SC->getValues();
|
const std::vector<RecordVal> &Vals = SC->getValues();
|
||||||
|
@ -23,7 +23,7 @@ namespace llvm {
|
|||||||
struct RecTy;
|
struct RecTy;
|
||||||
struct Init;
|
struct Init;
|
||||||
struct MultiClass;
|
struct MultiClass;
|
||||||
struct SubClassReference;
|
class SubClassReference;
|
||||||
|
|
||||||
struct LetRecord {
|
struct LetRecord {
|
||||||
std::string Name;
|
std::string Name;
|
||||||
@ -66,7 +66,7 @@ private: // Semantic analysis methods.
|
|||||||
bool AddValue(Record *TheRec, LocTy Loc, const RecordVal &RV);
|
bool AddValue(Record *TheRec, LocTy Loc, const RecordVal &RV);
|
||||||
bool SetValue(Record *TheRec, LocTy Loc, const std::string &ValName,
|
bool SetValue(Record *TheRec, LocTy Loc, const std::string &ValName,
|
||||||
const std::vector<unsigned> &BitList, Init *V);
|
const std::vector<unsigned> &BitList, Init *V);
|
||||||
bool AddSubClass(Record *Rec, class SubClassReference &SubClass);
|
bool AddSubClass(Record *Rec, SubClassReference &SubClass);
|
||||||
|
|
||||||
private: // Parser methods.
|
private: // Parser methods.
|
||||||
bool ParseObjectList();
|
bool ParseObjectList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user