This patch implements runtime Mips specific
[oota-llvm.git] / lib / Target / Mips / MipsSubtarget.h
index 001d8d1b4294fa92aef2bce1d59ef1cab37d0be0..63cde8d66894c5eac5378189333634eb92b22cce 100644 (file)
@@ -100,6 +100,9 @@ protected:
   // The instance to the register info section object
   MipsReginfo MRI;
 
+  // Relocation Model
+  Reloc::Model RM;
+
 public:
   virtual bool enablePostRAScheduler(CodeGenOpt::Level OptLevel,
                                      AntiDepBreakMode& Mode,
@@ -152,6 +155,9 @@ public:
 
   // Grab MipsRegInfo object
   const MipsReginfo &getMReginfo() const { return MRI; }
+
+  // Grab relocation model
+  Reloc::Model getRelocationModel() const {return RM;}
 };
 } // End llvm namespace