llvm.org GIT mirror llvm / e8bd0a3 lib / Target / X86 / X86MachineFunctionInfo.h
e8bd0a3

Tree @e8bd0a3 (Download .tar.gz)

X86MachineFunctionInfo.h @e8bd0a3raw · history · blame

//====- X86MachineFuctionInfo.h - X86 machine function info -----*- C++ -*-===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the Evan Cheng and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
// This file declares X86-specific per-machine-function information.
//
//===----------------------------------------------------------------------===//

#ifndef X86MACHINEFUNCTIONINFO_H
#define X86MACHINEFUNCTIONINFO_H

#include "llvm/CodeGen/MachineFunction.h"

namespace llvm {

class X86FunctionInfo : public MachineFunctionInfo {
  bool ForceFramePointer;  // Function requires use of frame pointer.
public:
  X86FunctionInfo(MachineFunction& MF) : ForceFramePointer(false) {}
  bool getForceFramePointer() const { return ForceFramePointer;} 
  void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; }
};
} // End llvm namespace

#endif