Rafael Espindola | ec46ea3 | 2006-08-16 14:43:33 +0000 | [diff] [blame] | 1 | //===-- ARMTargetFrameInfo.h - Define TargetFrameInfo for ARM ---*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the "Instituto Nokia de Tecnologia" and |
| 6 | // is distributed under the University of Illinois Open Source |
| 7 | // License. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | // |
| 11 | // |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef ARM_FRAMEINFO_H |
| 16 | #define ARM_FRAMEINFO_H |
| 17 | |
| 18 | #include "ARM.h" |
| 19 | #include "llvm/Target/TargetFrameInfo.h" |
Evan Cheng | a8e2989 | 2007-01-19 07:51:42 +0000 | [diff] [blame] | 20 | #include "ARMSubtarget.h" |
Rafael Espindola | ec46ea3 | 2006-08-16 14:43:33 +0000 | [diff] [blame] | 21 | |
| 22 | namespace llvm { |
| 23 | |
Evan Cheng | a8e2989 | 2007-01-19 07:51:42 +0000 | [diff] [blame] | 24 | class ARMFrameInfo : public TargetFrameInfo { |
Rafael Espindola | ec46ea3 | 2006-08-16 14:43:33 +0000 | [diff] [blame] | 25 | public: |
Dan Gohman | f452207 | 2007-07-30 14:51:59 +0000 | [diff] [blame] | 26 | explicit ARMFrameInfo(const ARMSubtarget &ST) |
Evan Cheng | a8e2989 | 2007-01-19 07:51:42 +0000 | [diff] [blame] | 27 | : TargetFrameInfo(StackGrowsDown, ST.getStackAlignment(), 0) { |
Rafael Espindola | ec46ea3 | 2006-08-16 14:43:33 +0000 | [diff] [blame] | 28 | } |
Rafael Espindola | ec46ea3 | 2006-08-16 14:43:33 +0000 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | } // End llvm namespace |
| 32 | |
| 33 | #endif |