diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:52:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:52:31 +0000 |
commit | d0061955175f9a75c872fb41bd6901cabe3adefc (patch) | |
tree | f525067282f99f10558164cc92b3ec8f50212161 /llvm/lib/CodeGen | |
parent | 798e84f59eb11eb2ae04b2b314307d4c4f9b415c (diff) | |
download | bcm5719-llvm-d0061955175f9a75c872fb41bd6901cabe3adefc.tar.gz bcm5719-llvm-d0061955175f9a75c872fb41bd6901cabe3adefc.zip |
Silence VS warnings.
llvm-svn: 19384
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 964c5116c77..63fcc1c2a72 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -233,7 +233,6 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { SDOperand Result = Op; SDNode *Node = Op.Val; - LegalizeAction Action; switch (Node->getOpcode()) { default: @@ -658,7 +657,6 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){ NeedsAnotherIteration = true; const char *LibCallName = 0; - LegalizeAction Action; switch (Node->getOpcode()) { default: std::cerr << "NODE: "; Node->dump(); std::cerr << "\n"; diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 743cb24527b..ac486894dd8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -37,7 +37,8 @@ namespace llvm { //===--------------------------------------------------------------------===// /// FunctionLoweringInfo - This contains information that is global to a /// function that is used when lowering a region of the function. - struct FunctionLoweringInfo { + class FunctionLoweringInfo { + public: TargetLowering &TLI; Function &Fn; MachineFunction &MF; @@ -119,11 +120,11 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli, unsigned Align = TLI.getTargetData().getTypeAlignment(Ty); TySize *= CUI->getValue(); // Get total allocated size. StaticAllocaMap[AI] = - MF.getFrameInfo()->CreateStackObject(TySize, Align); + MF.getFrameInfo()->CreateStackObject((unsigned)TySize, Align); } for (; BB != E; ++BB) - for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) + for (BasicBlock::iterator I = BB->begin(), e = BB->end(); I != e; ++I) if (!I->use_empty() && isUsedOutsideOfDefiningBlock(I)) if (!isa<AllocaInst>(I) || !StaticAllocaMap.count(cast<AllocaInst>(I))) |