Skip to content

Commit

Permalink
Rename Machine class connector macro
Browse files Browse the repository at this point in the history
The OMR::Machine extensible class connector macros used an old
style naming scheme.  Remove BASE from each of the macro names for
consistency with other extensible classes.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed Apr 14, 2018
1 parent b3e2f86 commit 78bae35
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 35 deletions.
10 changes: 4 additions & 6 deletions compiler/arm/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -25,14 +25,12 @@
/*
* The following #define and typedef must appear before any #includes in this file
*/
#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR

#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR { namespace ARM { class Machine; } }
namespace OMR { typedef OMR::ARM::Machine MachineConnector; }

#else
#error OMR::ARM::Machine expected to be a primary connector, but a OMR connector is already defined
#error OMR::ARM::Machine expected to be a primary connector, but an OMR connector is already defined
#endif

#include "compiler/codegen/OMRMachine.hpp"
Expand Down
8 changes: 4 additions & 4 deletions compiler/codegen/Machine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -19,10 +19,10 @@
* 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 OMR_MACHINE_INCL
#define OMR_MACHINE_INCL
#ifndef TR_MACHINE_INCL
#define TR_MACHINE_INCL

#include "codegen/OMRMachine.hpp" // for MachineBaseConnector
#include "codegen/OMRMachine.hpp"

namespace TR { class CodeGenerator; }

Expand Down
10 changes: 5 additions & 5 deletions compiler/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -19,14 +19,14 @@
* 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 OMR_MACHINE_BASE_INCL
#define OMR_MACHINE_BASE_INCL
#ifndef OMR_MACHINE_INCL
#define OMR_MACHINE_INCL

/*
* The following #define and typedef must appear before any #includes in this file
*/
#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR
#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR { class Machine; }
namespace OMR { typedef OMR::Machine MachineConnector; }
#endif
Expand Down
8 changes: 4 additions & 4 deletions compiler/p/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -25,12 +25,12 @@
/*
* The following #define and typedef must appear before any #includes in this file
*/
#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR
#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR { namespace Power { class Machine; } }
namespace OMR { typedef OMR::Power::Machine MachineConnector; }
#else
#error OMR::Power::Machine expected to be a primary connector, but a OMR connector is already defined
#error OMR::Power::Machine expected to be a primary connector, but an OMR connector is already defined
#endif

#include "compiler/codegen/OMRMachine.hpp"
Expand Down
8 changes: 4 additions & 4 deletions compiler/x/amd64/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -25,12 +25,12 @@
/*
* The following #define and typedef must appear before any #includes in this file
*/
#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR
#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR { namespace X86 { namespace AMD64 { class Machine; } } }
namespace OMR { typedef OMR::X86::AMD64::Machine MachineConnector; }
#else
#error OMR::X86::AMD64::Machine expected to be a primary connector, but a OMR connector is already defined
#error OMR::X86::AMD64::Machine expected to be a primary connector, but an OMR connector is already defined
#endif

#include "x/codegen/OMRMachine.hpp"
Expand Down
6 changes: 3 additions & 3 deletions compiler/x/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -22,8 +22,8 @@
#ifndef OMR_X86_MACHINE_INCL
#define OMR_X86_MACHINE_INCL

#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR
#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR { namespace X86 { class Machine; } }
namespace OMR { typedef OMR::X86::Machine MachineConnector; }
#endif
Expand Down
6 changes: 3 additions & 3 deletions compiler/x/i386/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -25,8 +25,8 @@
/*
* The following #define and typedef must appear before any #includes in this file
*/
#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR
#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR { namespace X86 { namespace I386 { class Machine; } } }
namespace OMR { typedef OMR::X86::I386::Machine MachineConnector; }
#else
Expand Down
12 changes: 6 additions & 6 deletions compiler/z/codegen/OMRMachine.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2018 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 All @@ -19,17 +19,17 @@
* 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 OMR_Z_MACHINEBASE_INCL
#define OMR_Z_MACHINEBASE_INCL
#ifndef OMR_Z_MACHINE_INCL
#define OMR_Z_MACHINE_INCL
/*
* The following #define and typedef must appear before any #includes in this file
*/
#ifndef OMR_MACHINEBASE_CONNECTOR
#define OMR_MACHINEBASE_CONNECTOR
#ifndef OMR_MACHINE_CONNECTOR
#define OMR_MACHINE_CONNECTOR
namespace OMR {namespace Z { class Machine; } }
namespace OMR { typedef OMR::Z::Machine MachineConnector; }
#else
#error OMR::Z::Machine expected to be a primary connector, but a OMR connector is already defined
#error OMR::Z::Machine expected to be a primary connector, but an OMR connector is already defined
#endif

#include "compiler/codegen/OMRMachine.hpp"
Expand Down

0 comments on commit 78bae35

Please sign in to comment.