[llvm-commits] [llvm] r81881 - /llvm/trunk/lib/Target/Sparc/SparcMachineFunctionInfo.h
Chris Lattner
sabre at nondot.org
Tue Sep 15 11:03:13 PDT 2009
Author: lattner
Date: Tue Sep 15 13:03:13 2009
New Revision: 81881
URL: http://llvm.org/viewvc/llvm-project?rev=81881&view=rev
Log:
add missing file
Added:
llvm/trunk/lib/Target/Sparc/SparcMachineFunctionInfo.h
Added: llvm/trunk/lib/Target/Sparc/SparcMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcMachineFunctionInfo.h?rev=81881&view=auto
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcMachineFunctionInfo.h (added)
+++ llvm/trunk/lib/Target/Sparc/SparcMachineFunctionInfo.h Tue Sep 15 13:03:13 2009
@@ -0,0 +1,32 @@
+//===- SparcMachineFunctionInfo.h - Sparc Machine Function Info -*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares Sparc specific per-machine-function information.
+//
+//===----------------------------------------------------------------------===//
+#ifndef SPARCMACHINEFUNCTIONINFO_H
+#define SPARCMACHINEFUNCTIONINFO_H
+
+#include "llvm/CodeGen/MachineFunction.h"
+
+namespace llvm {
+
+ class SparcMachineFunctionInfo : public MachineFunctionInfo {
+ private:
+ unsigned GlobalBaseReg;
+ public:
+ SparcMachineFunctionInfo() : GlobalBaseReg(0) {}
+ SparcMachineFunctionInfo(MachineFunction &MF) : GlobalBaseReg(0) {}
+
+ unsigned getGlobalBaseReg() const { return GlobalBaseReg; }
+ void setGlobalBaseReg(unsigned Reg) { GlobalBaseReg = Reg; }
+ };
+}
+
+#endif
More information about the llvm-commits
mailing list