Fix compilation errors with VS 2005, patch contributed by Aaron Gray.
[oota-llvm.git] / lib / Target / TargetFrameInfo.cpp
1 //===-- TargetFrameInfo.cpp - Implement machine frame interface -*- 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 // Implements the layout of a stack frame on the target machine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "llvm/Target/TargetFrameInfo.h"
15 #include <cstdlib>
16
17 using namespace llvm;
18
19 //===--------------------------------------------------------------------===//
20 // These methods provide details of the stack frame used by Sparc, thus they
21 // are Sparc specific.
22 //===--------------------------------------------------------------------===//
23
24 // This method adjusts a stack offset to meet alignment rules of target.
25 int 
26 TargetFrameInfo::adjustAlignment(int unalignedOffset, bool growUp,
27                                  unsigned align) const {
28   abort();
29   return 0;
30 }
31
32 // These methods compute offsets using the frame contents for a particular
33 // function.  The frame contents are obtained from the MachineFunction object
34 // for the given function.  The rest must be implemented by the
35 // machine-specific subclass.
36 // 
37 int
38 TargetFrameInfo::getIncomingArgOffset(MachineFunction& mcInfo, unsigned argNum)
39   const {
40   abort();
41   return 0;
42 }
43
44 int
45 TargetFrameInfo::getOutgoingArgOffset(MachineFunction& mcInfo,
46                                       unsigned argNum) const {
47   abort();
48   return 0;
49 }
50
51 int
52 TargetFrameInfo::getFirstAutomaticVarOffset(MachineFunction& mcInfo,
53                                             bool& growUp) const {
54   abort();
55   return 0;
56 }
57
58 int 
59 TargetFrameInfo::getRegSpillAreaOffset(MachineFunction& mcInfo, bool& growUp)
60   const {
61   abort();
62   return 0;
63 }
64
65 int
66 TargetFrameInfo::getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const {
67   abort();
68   return 0;
69 }
70
71 int 
72 TargetFrameInfo::getDynamicAreaOffset(MachineFunction& mcInfo, bool& growUp)
73   const {
74   abort();
75   return 0;
76 }
77