summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCFastISel.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-21 19:48:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-21 19:48:12 +0000
commit48975881abde87dd8afc399678c00067044e09ce (patch)
tree60cb183325e84afb17995704eb47eb720aeda672 /llvm/lib/Target/PowerPC/PPCFastISel.cpp
parentdf7103ddc55577af52e9184922851673c52208c9 (diff)
downloadbcm5719-llvm-48975881abde87dd8afc399678c00067044e09ce.tar.gz
bcm5719-llvm-48975881abde87dd8afc399678c00067044e09ce.zip
Delete some dead code.
Found by gcc 6. llvm-svn: 273303
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFastISel.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFastISel.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFastISel.cpp b/llvm/lib/Target/PowerPC/PPCFastISel.cpp
index cccc75faf26..842d68bf1c9 100644
--- a/llvm/lib/Target/PowerPC/PPCFastISel.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFastISel.cpp
@@ -186,7 +186,6 @@ class PPCFastISel final : public FastISel {
unsigned &NumBytes,
bool IsVarArg);
bool finishCall(MVT RetVT, CallLoweringInfo &CLI, unsigned &NumBytes);
- CCAssignFn *usePPC32CCs(unsigned Flag);
private:
#include "PPCGenFastISel.inc"
@@ -197,19 +196,6 @@ class PPCFastISel final : public FastISel {
#include "PPCGenCallingConv.inc"
-// Function whose sole purpose is to kill compiler warnings
-// stemming from unused functions included from PPCGenCallingConv.inc.
-CCAssignFn *PPCFastISel::usePPC32CCs(unsigned Flag) {
- if (Flag == 1)
- return CC_PPC32_SVR4;
- else if (Flag == 2)
- return CC_PPC32_SVR4_ByVal;
- else if (Flag == 3)
- return CC_PPC32_SVR4_VarArg;
- else
- return RetCC_PPC;
-}
-
static Optional<PPC::Predicate> getComparePred(CmpInst::Predicate Pred) {
switch (Pred) {
// These are not representable with any single compare.
OpenPOWER on IntegriCloud