Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add more stuff to LLVM::Context
  • Loading branch information
bacek committed Mar 7, 2011
1 parent 64f2895 commit 1c3e342
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/parrot/library/LLVM/Context.pm
Expand Up @@ -11,6 +11,13 @@ class LLVM::Context is LLVM::Opaque {
LLVM::Context.new.wrap(%LLVM::F<GetGlobalContext>());
}

method int1() { %LLVM::F<Int1TypeInContext>(self) }
method int8() { %LLVM::F<Int8TypeInContext>(self) }
method int16() { %LLVM::F<Int16TypeInContext>(self) }
method int32() { %LLVM::F<Int32TypeInContext>(self) }
method int64() { %LLVM::F<Int64TypeInContext>(self) }
method int($radix) { %LLVM::F<IntTypeInContext>(self, $radix) }

}

# vim: ft=perl6

0 comments on commit 1c3e342

Please sign in to comment.