Skip to content

Commit

Permalink
Add Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek authored and Reini Urban committed Oct 2, 2012
1 parent fbbcd36 commit 7103124
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runtime/parrot/library/LLVM/Builder.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class LLVM::Builder {
has $!ref;

method BUILD () {
$!ref := %LLVM::F<LLVMCreateBuilder>();
}


};

# vim: ft=perl6
3 changes: 3 additions & 0 deletions runtime/parrot/library/Rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ $(LIBRARY_DIR)/LLVM.pbc : \
$(LIBRARY_DIR)/LLVM.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM.pm
$(NQP_RX) --target=pir --output=$@ $(LIBRARY_DIR)/LLVM.pm

$(LIBRARY_DIR)/LLVM/Builder.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM/Builder.pm
$(NQP_RX) --target=pir --output=$@ $(LIBRARY_DIR)/LLVM/Builder.pm

$(LIBRARY_DIR)/LLVM/Module.pir: $(NQP_RX) $(LIBRARY_DIR)/LLVM/Module.pm
$(NQP_RX) --target=pir --output=$@ $(LIBRARY_DIR)/LLVM/Module.pm

Expand Down

0 comments on commit 7103124

Please sign in to comment.