summaryrefslogtreecommitdiff
path: root/src/jit/codegencommon.cpp
diff options
context:
space:
mode:
authorBrian Bohe <brianbohe@gmail.com>2019-03-19 10:21:49 -0700
committerSergey Andreenko <seandree@microsoft.com>2019-03-19 10:21:49 -0700
commit8497ae3ed438f443b22b00a66f42afe8f6623bbf (patch)
treec6d4f01b2f732eafb92b9779275127e76c9f9609 /src/jit/codegencommon.cpp
parent0786da806b9727c466f3f9393cb3d55cf9df7536 (diff)
downloadcoreclr-8497ae3ed438f443b22b00a66f42afe8f6623bbf.tar.gz
coreclr-8497ae3ed438f443b22b00a66f42afe8f6623bbf.tar.bz2
coreclr-8497ae3ed438f443b22b00a66f42afe8f6623bbf.zip
Adding const to functions that don't change or shouldn't change state (#23329)
Diffstat (limited to 'src/jit/codegencommon.cpp')
-rw-r--r--src/jit/codegencommon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jit/codegencommon.cpp b/src/jit/codegencommon.cpp
index f1e6292585..b90cf5548d 100644
--- a/src/jit/codegencommon.cpp
+++ b/src/jit/codegencommon.cpp
@@ -191,7 +191,7 @@ void CodeGenInterface::genMarkTreeInReg(GenTree* tree, regNumber reg)
// Return value:
// Frame size
-int CodeGenInterface::genTotalFrameSize()
+int CodeGenInterface::genTotalFrameSize() const
{
assert(!IsUninitialized(compiler->compCalleeRegsPushed));
@@ -208,7 +208,7 @@ int CodeGenInterface::genTotalFrameSize()
//
// There must be a frame pointer to call this function!
-int CodeGenInterface::genSPtoFPdelta()
+int CodeGenInterface::genSPtoFPdelta() const
{
assert(isFramePointerUsed());
@@ -227,7 +227,7 @@ int CodeGenInterface::genSPtoFPdelta()
//
// There must be a frame pointer to call this function!
-int CodeGenInterface::genCallerSPtoFPdelta()
+int CodeGenInterface::genCallerSPtoFPdelta() const
{
assert(isFramePointerUsed());
int callerSPtoFPdelta = 0;
@@ -255,7 +255,7 @@ int CodeGenInterface::genCallerSPtoFPdelta()
//
// This number will be negative.
-int CodeGenInterface::genCallerSPtoInitialSPdelta()
+int CodeGenInterface::genCallerSPtoInitialSPdelta() const
{
int callerSPtoSPdelta = 0;