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 Jun 26, 2018
1 parent a3f865b commit 94b98d4
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 94b98d4

Please sign in to comment.