[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp

Chris Lattner sabre at nondot.org
Wed Sep 27 11:29:54 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86ISelLowering.cpp updated: 1.264 -> 1.265
---
Log message:

silence warnings in release build


---
Diffs of the changes:  (+14 -14)

 X86ISelLowering.cpp |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.264 llvm/lib/Target/X86/X86ISelLowering.cpp:1.265
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.264	Mon Sep 25 22:57:53 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp	Wed Sep 27 13:29:38 2006
@@ -4286,20 +4286,20 @@
     return LowerX86_64CCCCallTo(Op, DAG);
   else
     switch (CallingConv) {
-     case CallingConv::Fast:
+    default:
+      assert(0 && "Unsupported calling convention");      
+    case CallingConv::Fast:
       if (EnableFastCC) {
         return LowerFastCCCallTo(Op, DAG, false);
       }
       // Falls through
-     case CallingConv::C:
-     case CallingConv::CSRet:
+    case CallingConv::C:
+    case CallingConv::CSRet:
       return LowerCCCCallTo(Op, DAG);
-     case CallingConv::X86_StdCall: 
+    case CallingConv::X86_StdCall: 
       return LowerStdCallCCCallTo(Op, DAG);
-     case CallingConv::X86_FastCall:
+    case CallingConv::X86_FastCall:
       return LowerFastCCCallTo(Op, DAG, true);
-     default:
-      assert(0 && "Unsupported calling convention");      
     }
 }
 
@@ -4421,22 +4421,22 @@
     return LowerX86_64CCCArguments(Op, DAG);
   else
     switch(CC) {
-     case CallingConv::Fast:
+    default:
+      assert(0 && "Unsupported calling convention");
+    case CallingConv::Fast:
       if (EnableFastCC) {
         return LowerFastCCArguments(Op, DAG);
       }
       // Falls through
-     case CallingConv::C:
-     case CallingConv::CSRet:
+    case CallingConv::C:
+    case CallingConv::CSRet:
       return LowerCCCArguments(Op, DAG);
-     case CallingConv::X86_StdCall:
+    case CallingConv::X86_StdCall:
       MF.getInfo<X86FunctionInfo>()->setDecorationStyle(StdCall);
       return LowerStdCallCCArguments(Op, DAG);
-     case CallingConv::X86_FastCall:
+    case CallingConv::X86_FastCall:
       MF.getInfo<X86FunctionInfo>()->setDecorationStyle(FastCall);
       return LowerFastCallCCArguments(Op, DAG);
-     default:
-      assert(0 && "Unsupported calling convention");
     }
 }
 






More information about the llvm-commits mailing list