Remove the check for invalid calling conventions. Testing shows that they're
authorEric Christopher <echristo@apple.com>
Mon, 18 Oct 2010 06:49:12 +0000 (06:49 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 18 Oct 2010 06:49:12 +0000 (06:49 +0000)
working just fine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116698 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 86e618d0dbc6572843ed6f6bf26f3d330e74f32b..d4b4dca3b481e87f8e1c69bf169b5cefd1ffaddc 100644 (file)
@@ -1518,11 +1518,8 @@ bool ARMFastISel::SelectCall(const Instruction *I) {
   // Check the calling convention.
   ImmutableCallSite CS(CI);
   CallingConv::ID CC = CS.getCallingConv();
+
   // TODO: Avoid some calling conventions?
-  if (CC != CallingConv::C) {
-    // errs() << "Can't handle calling convention: " << CC << "\n";
-    return false;
-  }
 
   // Let SDISel handle vararg functions.
   const PointerType *PT = cast<PointerType>(CS.getCalledValue()->getType());