summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-09-07 03:17:19 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-09-07 03:17:19 +0000
commita7ade33d163f1aee55abfec1877fe34fc4271229 (patch)
tree05dc1a983077e98d90c7bd5d0a07471bbe747517 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parentf8e7a54be82fad657f4f5157c130e06a8ea26ad9 (diff)
downloadbcm5719-llvm-a7ade33d163f1aee55abfec1877fe34fc4271229.tar.gz
bcm5719-llvm-a7ade33d163f1aee55abfec1877fe34fc4271229.zip
Revert "CodeGen: ensure that libcalls are always AAPCS CC"
This reverts SVN r280683. Revert until I figure out why this is breaking lli tests. llvm-svn: 280778
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index f7322622c03..85c277a5025 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -488,11 +488,12 @@ static void InitLibcallNames(const char **Names, const Triple &TT) {
Names[RTLIB::DEOPTIMIZE] = "__llvm_deoptimize";
}
-/// Set default libcall CallingConvs.
-static void InitLibcallCallingConvs(CallingConv::ID *CCs, const Triple &T) {
- bool IsARM = T.getArch() == Triple::arm || T.getArch() == Triple::thumb;
- for (int LC = 0; LC < RTLIB::UNKNOWN_LIBCALL; ++LC)
- CCs[LC] = IsARM ? CallingConv::ARM_AAPCS : CallingConv::C;
+/// InitLibcallCallingConvs - Set default libcall CallingConvs.
+///
+static void InitLibcallCallingConvs(CallingConv::ID *CCs) {
+ for (int i = 0; i < RTLIB::UNKNOWN_LIBCALL; ++i) {
+ CCs[i] = CallingConv::C;
+ }
}
/// getFPEXT - Return the FPEXT_*_* value for the given types, or
@@ -834,7 +835,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
InitLibcallNames(LibcallRoutineNames, TM.getTargetTriple());
InitCmpLibcallCCs(CmpLibcallCCs);
- InitLibcallCallingConvs(LibcallCallingConvs, TM.getTargetTriple());
+ InitLibcallCallingConvs(LibcallCallingConvs);
}
void TargetLoweringBase::initActions() {
OpenPOWER on IntegriCloud