blob: 9da2bf901bbd5f527ba1aba9d1fe2a1d01e95fc1 [file] [log] [blame]
Evan Chenge8bd0a32006-06-06 23:30:24 +00001//====- X86MachineFuctionInfo.h - X86 machine function info -----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by the Evan Cheng and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file declares X86-specific per-machine-function information.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef X86MACHINEFUNCTIONINFO_H
15#define X86MACHINEFUNCTIONINFO_H
16
17#include "llvm/CodeGen/MachineFunction.h"
18
19namespace llvm {
20
21class X86FunctionInfo : public MachineFunctionInfo {
22 bool ForceFramePointer; // Function requires use of frame pointer.
23public:
24 X86FunctionInfo(MachineFunction& MF) : ForceFramePointer(false) {}
25 bool getForceFramePointer() const { return ForceFramePointer;}
26 void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
27};
28} // End llvm namespace
29
30#endif