Skip to content

Commit

Permalink
Remove deprecated code from Relocation.hpp
Browse files Browse the repository at this point in the history
* Remove unnecessary typedefs not used in OMR or downstream projects
* Remove obsolete debugging code

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed Oct 9, 2020
1 parent 2754a7c commit 06657b9
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions compiler/codegen/Relocation.hpp
Expand Up @@ -39,15 +39,6 @@ namespace TR { class Node; }

extern char* AOTcgDiagOn;

#if 0 //defined(ENABLE_AOT_S390)
#define AOTcgDiag0(comp,s) if (AOTcgDiagOn) dumpOptDetails(comp,s)
#define AOTcgDiag1(comp,s,p1) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1)
#define AOTcgDiag2(comp,s,p1,p2) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2)
#define AOTcgDiag3(comp,s,p1,p2,p3) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3)
#define AOTcgDiag4(comp,s,p1,p2,p3,p4) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3,p4)
#define AOTcgDiag5(comp,s,p1,p2,p3,p4,p5) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3,p4,p5)
#define AOTcgDiag6(comp,s,p1,p2,p3,p4,p5,p6) if (AOTcgDiagOn) dumpOptDetails(comp,s,p1,p2,p3,p4,p5,p6)
#else
#define AOTcgDiag0(comp,s) AOTcgDummy()
#define AOTcgDiag1(comp,s,p1) AOTcgDummy()
#define AOTcgDiag2(comp,s,p1,p2) AOTcgDummy()
Expand All @@ -56,7 +47,6 @@ extern char* AOTcgDiagOn;
#define AOTcgDiag5(comp,s,p1,p2,p3,p4,p5) AOTcgDummy()
#define AOTcgDiag6(comp,s,p1,p2,p3,p4,p5,p6) AOTcgDummy()
inline void AOTcgDummy(){}
#endif

typedef enum
{
Expand Down Expand Up @@ -488,18 +478,4 @@ class BeforeBinaryEncodingExternalRelocation : public TR::ExternalRelocation

}

typedef TR::RelocationDebugInfo TR_RelocationDebugInfo;
typedef TR::Relocation TR_Relocation;
typedef TR::LabelRelocation TR_LabelRelocation;
typedef TR::LabelRelative8BitRelocation TR_8BitLabelRelativeRelocation;
typedef TR::LabelRelative12BitRelocation TR_12BitLabelRelativeRelocation;
typedef TR::LabelRelative16BitRelocation TR_16BitLabelRelativeRelocation;
typedef TR::LabelRelative24BitRelocation TR_24BitLabelRelativeRelocation;
typedef TR::LabelRelative32BitRelocation TR_32BitLabelRelativeRelocation;
typedef TR::LabelAbsoluteRelocation TR_LabelAbsoluteRelocation;
typedef TR::IteratedExternalRelocation TR_IteratedExternalRelocation;
typedef TR::ExternalRelocation TR_ExternalRelocation;
typedef TR::ExternalOrderedPair32BitRelocation TR_32BitExternalOrderedPairRelocation;
typedef TR::BeforeBinaryEncodingExternalRelocation TR_BeforeBinaryEncodingExternalRelocation;

#endif

0 comments on commit 06657b9

Please sign in to comment.