Delete the CollectorNamePool if it should become empty.
[oota-llvm.git] / lib / Target / CellSPU / SPUMachineFunction.h
1 //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation and is distributed under the
7 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10 //
11 // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef SPU_MACHINE_FUNCTION_INFO_H
16 #define SPU_MACHINE_FUNCTION_INFO_H
17
18 #include "llvm/CodeGen/MachineFunction.h"
19
20 namespace llvm {
21
22 /// SPUFunctionInfo - Cell SPU target-specific information for each
23 /// MachineFunction
24 class SPUFunctionInfo : public MachineFunctionInfo {
25 private:
26   /// UsesLR - Indicates whether LR is used in the current function.
27   ///
28   bool UsesLR;
29
30 public:
31   SPUFunctionInfo(MachineFunction& MF) 
32   : UsesLR(false)
33   {}
34
35   void setUsesLR(bool U) { UsesLR = U; }
36   bool usesLR()          { return UsesLR; }
37
38 };
39
40 } // end of namespace llvm
41
42
43 #endif
44