Skip to content

Commit

Permalink
Remove inline keyword from OMR::Optimizer::self in cpp file
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Guan <james_mango@yahoo.com>
  • Loading branch information
jamesgua committed Jun 14, 2021
1 parent 00049c6 commit 502e5ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions compiler/optimizer/OMROptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "optimizer/Optimizer.hpp"

#include "optimizer/Optimizer_inlines.hpp"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
Expand Down Expand Up @@ -2793,8 +2794,6 @@ OMR::Optimizer::valueNumberInfoBuildType()
return PrePartitionVN;
}


inline
TR::Optimizer *OMR::Optimizer::self()
{
return (static_cast<TR::Optimizer *>(this));
Expand Down
2 changes: 1 addition & 1 deletion compiler/optimizer/Optimizer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down
4 changes: 2 additions & 2 deletions compiler/optimizer/Optimizer_inlines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
*******************************************************************************/

#ifndef TR_OPTIMIZER_INLINES_INCL
#define TR_OPTIMIZER_INLINES_INCL
#ifndef OPTIMIZER_INLINES_INCL
#define OPTIMIZER_INLINES_INCL

#include "optimizer/OMROptimizer_inlines.hpp"

Expand Down

0 comments on commit 502e5ca

Please sign in to comment.