remove a dead bool.
[llvm/avr.git] / lib / Target / Alpha / AlphaMachineFunctionInfo.h
blob8221fc7a7c97af3c6e91a3bc85bebebc0a695e4f
1 //====- AlphaMachineFuctionInfo.h - Alpha machine function info -*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares Alpha-specific per-machine-function information.
12 //===----------------------------------------------------------------------===//
14 #ifndef ALPHAMACHINEFUNCTIONINFO_H
15 #define ALPHAMACHINEFUNCTIONINFO_H
17 #include "llvm/CodeGen/MachineFunction.h"
19 namespace llvm {
21 /// AlphaMachineFunctionInfo - This class is derived from MachineFunction
22 /// private Alpha target-specific information for each MachineFunction.
23 class AlphaMachineFunctionInfo : public MachineFunctionInfo {
24 /// GlobalBaseReg - keeps track of the virtual register initialized for
25 /// use as the global base register. This is used for PIC in some PIC
26 /// relocation models.
27 unsigned GlobalBaseReg;
29 /// GlobalRetAddr = keeps track of the virtual register initialized for
30 /// the return address value.
31 unsigned GlobalRetAddr;
33 public:
34 AlphaMachineFunctionInfo() : GlobalBaseReg(0), GlobalRetAddr(0) {}
36 explicit AlphaMachineFunctionInfo(MachineFunction &MF) : GlobalBaseReg(0),
37 GlobalRetAddr(0) {}
39 unsigned getGlobalBaseReg() const { return GlobalBaseReg; }
40 void setGlobalBaseReg(unsigned Reg) { GlobalBaseReg = Reg; }
42 unsigned getGlobalRetAddr() const { return GlobalRetAddr; }
43 void setGlobalRetAddr(unsigned Reg) { GlobalRetAddr = Reg; }
46 } // End llvm namespace
48 #endif