summaryrefslogtreecommitdiff
path: root/backend/src/ir
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-07-22 17:01:06 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-07-31 10:53:04 +0800
commit32b489b64f2f11d3b024ca1d9da65806604f43a3 (patch)
tree7f2f98eb312bef4185d8b88b71a3f0499467a903 /backend/src/ir
parent5a1f1e95f41f811b0a0bc7003b9e12d4b57593ec (diff)
GBE: simplify processConstant.
Preparation to support generic constant expression. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'backend/src/ir')
-rw-r--r--backend/src/ir/function.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/ir/function.hpp b/backend/src/ir/function.hpp
index 21e1a66a..7b68c604 100644
--- a/backend/src/ir/function.hpp
+++ b/backend/src/ir/function.hpp
@@ -267,7 +267,7 @@ namespace ir {
/*! Get the register file */
INLINE const RegisterFile &getRegisterFile(void) const { return file; }
/*! Get the given value ie immediate from the function */
- INLINE Immediate getImmediate(ImmediateIndex ID) const {
+ INLINE const Immediate &getImmediate(ImmediateIndex ID) const {
return immediates[ID];
}
/*! Create a new immediate and returns its index */