aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-18 06:49:12 +0000
committerEric Christopher <echristo@apple.com>2010-10-18 06:49:12 +0000
commit4cf34c6c041cebc1d816d178654c6bbb7737cc4e (patch)
tree5871ecef1b475df87375f1d9c27ad4d37df410a5
parentfa87d6675212d5ca04725b7e541156f58c4ab40b (diff)
Remove the check for invalid calling conventions. Testing shows that they're
working just fine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116698 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 86e618d0db..d4b4dca3b4 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -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());