LLVM API Documentation
00001 //===-- XCoreFrameInfo.h - Frame info for XCore Target -----------*- C++ -*-==// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains XCore frame information that doesn't fit anywhere else 00011 // cleanly... 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #ifndef XCOREFRAMEINFO_H 00016 #define XCOREFRAMEINFO_H 00017 00018 #include "llvm/Target/TargetFrameInfo.h" 00019 #include "llvm/Target/TargetMachine.h" 00020 00021 namespace llvm { 00022 class XCoreFrameInfo: public TargetFrameInfo { 00023 00024 public: 00025 XCoreFrameInfo(const TargetMachine &tm); 00026 00027 //! Stack slot size (4 bytes) 00028 static int stackSlotSize() { 00029 return 4; 00030 } 00031 }; 00032 } 00033 00034 #endif // XCOREFRAMEINFO_H