[examples][BuildingAJIT] Use the right layer when adding code in Chapter 3.
We were incorrectly using the OptimizeLayer and bypassing the COD layer.
This commit is contained in:
parent
34e539dcd7
commit
1e16272ba7
|
@ -120,7 +120,7 @@ public:
|
|||
if (!RT)
|
||||
RT = MainJD.getDefaultResourceTracker();
|
||||
|
||||
return OptimizeLayer.add(RT, std::move(TSM));
|
||||
return CODLayer.add(RT, std::move(TSM));
|
||||
}
|
||||
|
||||
Expected<JITEvaluatedSymbol> lookup(StringRef Name) {
|
||||
|
|
Loading…
Reference in New Issue