Skip to content

Commit

Permalink
Add empty TR_ALLOC to IlType,IlValue if not already defined
Browse files Browse the repository at this point in the history
Needed to prevent build errors for JitBuilder samples, but
will become unnecessary when JitBuilder migrates to the new
client API generators.

Signed-off-by: Mark Stoodley <[email protected]>
  • Loading branch information
mstoodle committed May 1, 2018
1 parent 35b7286 commit aa6a752
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/ilgen/OMRIlType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
#include "il/DataTypes.hpp"

class TR_Memory;
#ifndef TR_ALLOC
#define TR_ALLOC(x)
#endif


namespace TR { class IlType; }

Expand Down
3 changes: 3 additions & 0 deletions compiler/ilgen/OMRIlValue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#define OMR_ILVALUE_INCL

#include "il/DataTypes.hpp" // for TR::DataType
#ifndef TR_ALLOC
#define TR_ALLOC(x)
#endif

namespace TR { class Node; }
namespace TR { class TreeTop; }
Expand Down

0 comments on commit aa6a752

Please sign in to comment.