Permalink
Browse files

Use "multi" for auto-generated methods as well.

  • Loading branch information...
1 parent 3af3b25 commit eb21088dcebf3aafd7291d3ed84a49edab4bfcff @bacek bacek committed with Reini Urban Mar 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 runtime/parrot/library/LLVM/Builder.pm
@@ -337,7 +337,7 @@ INIT {
my $subname := pir::downcase($name);
$HOW.add_method(
$subname,
- method (LLVM::Value $left, LLVM::Value $right, :$name?) {
+ multi method (LLVM::Value $left, LLVM::Value $right, :$name?) {
LLVM::Value.create(
LLVM::call($call, self, $left, $right, $name)
)
@@ -369,7 +369,7 @@ INIT {
).kv -> $call, $subname {
$HOW.add_method(
$subname,
- method (LLVM::Value $value, LLVM::Type $type, :$name?) {
+ multi method (LLVM::Value $value, LLVM::Type $type, :$name?) {
LLVM::Value.create(
LLVM::call("LLVMBuild" ~ $call, self, $value, $type, $name)
)

0 comments on commit eb21088

Please sign in to comment.