llvmpy/llvmpy — pull request #18 by laanwj (2012-09-09 10:07:49+00:00)
Title: Add properties to get the value of ConstantInt

- add wrapping constructor for (signed) long long. Completely analogous to how unsigned long long is handled
- add property `z_ext_value` to `ConstantInt` that gets the zero-extended value using `LLVMConstIntGetZExtValue`
- add property `s_ext_value` to `ConstantInt` that gets the sign-extended value using `LLVMConstIntGetSExtValue`
- add test case