ir::unit can return its constantSet
authorHomer Hsing <homer.xing@intel.com>
Thu, 2 May 2013 01:00:30 +0000 (09:00 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 2 May 2013 02:46:58 +0000 (10:46 +0800)
Version 3.

Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ir/unit.hpp

index 37a5dbf..ae78638 100644 (file)
@@ -67,6 +67,10 @@ namespace ir {
       else
         return FAMILY_QWORD;
     }
+    /*! Return the constant set */
+    ConstantSet& getConstantSet(void) { return constantSet; }
+    /*! Return the constant set */
+    const ConstantSet& getConstantSet(void) const { return constantSet; }
   private:
     friend class ContextInterface; //!< Can free modify the unit
     hash_map<std::string, Function*> functions; //!< All the defined functions