Skip to content

Commit

Permalink
Remove Builder.BUILD. We can call it .new actually
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Mar 7, 2011
1 parent c9ae6e7 commit e92c97e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/parrot/library/LLVM/Builder.pm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class LLVM::Builder is LLVM::Opaque {

multi method BUILD () {
multi method new () {
self.wrap( %LLVM::F<CreateBuilder>() );
}

multi method BUILD ($context) {
multi method new ($context) {
self.wrap( %LLVM::F<CreateBuilderInContext>($context) );
}

Expand Down
2 changes: 1 addition & 1 deletion t/library/llvm.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ my $bb := $function.append_basic_block("the_block");
ok( pir::defined($bb), "BasicBlock appended");
ok( $bb ~~ LLVM::BasicBlock, ".. with proper type");

my $builder := LLVM::Builder.new.BUILD();
my $builder := LLVM::Builder.new();
ok( pir::defined($builder), "LLVM::Builder created");
ok( $builder ~~ LLVM::Builder, ".. with proper type");

Expand Down

0 comments on commit e92c97e

Please sign in to comment.