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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64554
91177308-0d34-0410-b5e6-
96231b3b80d8
class Module;
class Type;
class Value;
class Module;
class Type;
class Value;
- class DbgStopPointInst;
- class DbgDeclareInst;
+ struct DbgStopPointInst;
+ struct DbgDeclareInst;
class Instruction;
class DIDescriptor {
class Instruction;
class DIDescriptor {
};
/// SUnit - Scheduling unit. This is a node in the scheduling DAG.
};
/// SUnit - Scheduling unit. This is a node in the scheduling DAG.
private:
SDNode *Node; // Representative node.
MachineInstr *Instr; // Alternatively, a MachineInstr.
private:
SDNode *Node; // Representative node.
MachineInstr *Instr; // Alternatively, a MachineInstr.
class AllocaInst;
class ConstantExpr;
class TargetData;
class AllocaInst;
class ConstantExpr;
class TargetData;
+struct DbgInfoIntrinsic;
template<typename T> class SmallVectorImpl;
template<typename T> class SmallVectorImpl;
namespace llvm {
/// AsmOperandInfo - This contains information for each constraint that we are
/// lowering.
namespace llvm {
/// AsmOperandInfo - This contains information for each constraint that we are
/// lowering.
-struct VISIBILITY_HIDDEN SDISelAsmOperandInfo :
+class VISIBILITY_HIDDEN SDISelAsmOperandInfo :
public TargetLowering::AsmOperandInfo {
public TargetLowering::AsmOperandInfo {
/// CallOperand - If this is the result output operand or a clobber
/// this is null, otherwise it is the incoming operand to the CallInst.
/// This gets modified as the asm is processed.
/// CallOperand - If this is the result output operand or a clobber
/// this is null, otherwise it is the incoming operand to the CallInst.
/// This gets modified as the asm is processed.
case convolve(fcInfinity, fcInfinity):
/* Differently signed infinities can only be validly
subtracted. */
case convolve(fcInfinity, fcInfinity):
/* Differently signed infinities can only be validly
subtracted. */
- if((sign ^ rhs.sign) != subtract) {
+ if(((sign ^ rhs.sign)!=0) != subtract) {
makeNaN();
return opInvalidOp;
}
makeNaN();
return opInvalidOp;
}
}
// 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) {
Sleep(n*1000);
void sys::Sleep(unsigned n) {
Sleep(n*1000);
/// AddSubClass - Add SubClass as a subclass to CurRec, resolving its template
/// args as SubClass's template arguments.
/// AddSubClass - Add SubClass as a subclass to CurRec, resolving its template
/// 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;
// Add all of the values in the subclass into the current class.
const std::vector<RecordVal> &Vals = SC->getValues();
Record *SC = SubClass.Rec;
// Add all of the values in the subclass into the current class.
const std::vector<RecordVal> &Vals = SC->getValues();
struct RecTy;
struct Init;
struct MultiClass;
struct RecTy;
struct Init;
struct MultiClass;
- struct SubClassReference;
+ class SubClassReference;
struct LetRecord {
std::string Name;
struct LetRecord {
std::string Name;
bool AddValue(Record *TheRec, LocTy Loc, const RecordVal &RV);
bool SetValue(Record *TheRec, LocTy Loc, const std::string &ValName,
const std::vector<unsigned> &BitList, Init *V);
bool AddValue(Record *TheRec, LocTy Loc, const RecordVal &RV);
bool SetValue(Record *TheRec, LocTy Loc, const std::string &ValName,
const std::vector<unsigned> &BitList, Init *V);
- bool AddSubClass(Record *Rec, class SubClassReference &SubClass);
+ bool AddSubClass(Record *Rec, SubClassReference &SubClass);
private: // Parser methods.
bool ParseObjectList();
private: // Parser methods.
bool ParseObjectList();