Convert to the new MachineFunctionInfo interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-08-18 18:13:37 +00:00
parent 8bdf87d1d8
commit a1e51ff2aa
10 changed files with 34 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
//===-- MachineFunctionInfo.h -----------------------------------*- C++ -*-===//
//===-- SparcV9FunctionInfo.h -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -29,7 +29,7 @@ class MachineFunction;
class Constant;
class Type;
class MachineFunctionInfo : public MachineFunctionInfoBase {
class SparcV9FunctionInfo : public MachineFunctionInfo {
hash_set<const Constant*> constantsForConstPool;
hash_map<const Value*, int> offsets;
@@ -48,7 +48,7 @@ class MachineFunctionInfo : public MachineFunctionInfoBase {
public:
hash_map<const Instruction*, MachineCodeForInstruction> MCFIEntries;
MachineFunctionInfo(MachineFunction &mf) : MF(mf) {
SparcV9FunctionInfo(MachineFunction &mf) : MF(mf) {
staticStackSize = automaticVarsSize = regSpillsSize = 0;
maxOptionalArgsSize = maxOptionalNumArgs = currentTmpValuesSize = 0;
maxTmpValuesSize = 0;