Remove what little AIX support we have. It has never been tested and isn't
[oota-llvm.git] / lib / Target / PowerPC / PPCFrameInfo.h
1 //===-- PPCFrameInfo.h - Define TargetFrameInfo for PowerPC -----*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //
11 //===----------------------------------------------------------------------===//
12
13 #ifndef POWERPC_FRAMEINFO_H
14 #define POWERPC_FRAMEINFO_H
15
16 #include "PPC.h"
17 #include "llvm/Target/TargetFrameInfo.h"
18 #include "llvm/Target/TargetMachine.h"
19
20 namespace llvm {
21
22 class PPCFrameInfo: public TargetFrameInfo {
23   const TargetMachine &TM;
24   std::pair<unsigned, int> LR[1];
25
26 public:
27   PPCFrameInfo(const TargetMachine &tm, bool LP64)
28     : TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), TM(tm) {
29     LR[0].first = PPC::LR;
30     LR[0].second = LP64 ? 16 : 8;
31   }
32
33   const std::pair<unsigned, int> *
34   getCalleeSaveSpillSlots(unsigned &NumEntries) const {
35     NumEntries = 1;
36     return &LR[0];
37   }
38 };
39
40 } // End llvm namespace
41
42 #endif