Fix some minor MSVC compiler warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-07-19 01:38:38 +00:00
parent 2c4df5a95d
commit cfb8a1bea1
3 changed files with 5 additions and 9 deletions

View File

@ -3905,11 +3905,11 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, SDVTList VTList,
if (VTList.NumVTs == 1) if (VTList.NumVTs == 1)
return getNode(Opcode, DL, VTList.VTs[0], Ops, NumOps); return getNode(Opcode, DL, VTList.VTs[0], Ops, NumOps);
#if 0
switch (Opcode) { switch (Opcode) {
// FIXME: figure out how to safely handle things like // FIXME: figure out how to safely handle things like
// int foo(int x) { return 1 << (x & 255); } // int foo(int x) { return 1 << (x & 255); }
// int bar() { return foo(256); } // int bar() { return foo(256); }
#if 0
case ISD::SRA_PARTS: case ISD::SRA_PARTS:
case ISD::SRL_PARTS: case ISD::SRL_PARTS:
case ISD::SHL_PARTS: case ISD::SHL_PARTS:
@ -3925,8 +3925,8 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, SDVTList VTList,
return getNode(Opcode, DL, VT, N1, N2, N3.getOperand(0)); return getNode(Opcode, DL, VT, N1, N2, N3.getOperand(0));
} }
break; break;
#endif
} }
#endif
// Memoize the node unless it returns a flag. // Memoize the node unless it returns a flag.
SDNode *N; SDNode *N;

View File

@ -14,7 +14,7 @@
namespace llvm { namespace llvm {
struct LiveInterval; class LiveInterval;
class LiveIntervals; class LiveIntervals;
class LiveStacks; class LiveStacks;
class MachineFunction; class MachineFunction;

View File

@ -365,9 +365,7 @@ static const char *GetCurrentX86CPU() {
} }
case 15: case 15:
if (HasSSE3) { if (HasSSE3) {
switch (Model) { return "k8-sse3";
default: return "k8-sse3";
}
} else { } else {
switch (Model) { switch (Model) {
case 1: return "opteron"; case 1: return "opteron";
@ -376,9 +374,7 @@ static const char *GetCurrentX86CPU() {
} }
} }
case 16: case 16:
switch (Model) { return "amdfam10";
default: return "amdfam10";
}
default: default:
return "generic"; return "generic";
} }