summaryrefslogtreecommitdiff
path: root/bindings/python
Commit message (Collapse)AuthorAge
* [python] Add negative MemoryBuffer testcaseAnders Waldenborg2012-03-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153248 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Add some paths where to find test binaryAnders Waldenborg2012-03-21
| | | | | | | | | Adds /usr/lib/debug early to list, as some systems (debian) have unstripped libs in there Adds /lib/i386-linux-gnu for systems that does multiarch (debian) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153174 91177308-0d34-0410-b5e6-96231b3b80d8
* [python] Mark get_test_binary as not being a testAnders Waldenborg2012-03-21
| | | | | | | | | get_test_binary is a helper method, not a test, make sure nosetests doesn't pick it up as a test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153173 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Implement disassembler interfaceGregory Szorc2012-03-11
| | | | | | | It doesn't currently support the op info and symbol lookup callbacks, but it is better than nothing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152527 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "[llvm.py] Implement interface to enhanced disassembler"Gregory Szorc2012-03-10
| | | | | | | Chris Lattner says the edis interface is going away. It doesn't make sense to land something that will go away in the near future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152508 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Implement interface to enhanced disassemblerGregory Szorc2012-03-10
| | | | | | | | | | | This requires a C++ change to EDDisassembler's ctor to function properly (the llvm::InitializeAll* functions aren't being called currently and there is no way to call them from Python). Code is partially tested and works well enough for initial commit. There are probably many small bugs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152506 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Make LLVMObject.__del__ work if called during __init__Gregory Szorc2012-03-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152505 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Define enumerations from Core.h; add OpCode classGregory Szorc2012-03-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152483 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Implement interface to object filesGregory Szorc2012-03-10
| | | | | | | It is now possible to load object files and scan over sections, symbols, and relocations! Includes test code with partial coverage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152482 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Make ObjectFile destructor workGregory Szorc2012-03-09
| | | | | | Previous code had a double free in MemoryBuffer. The tests now pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152422 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm.py] Initial skeleton for Python LLVM bindingsGregory Szorc2012-03-09
This contains a semi-functional skeleton for the implementation of the LLVM bindings for Python. The API for the Object.h interface is roughly designed but not implemented. MemoryBufferRef is implemented and actually appears to work! The ObjectFile unit test fails with a segmentation fault because the LLVM library isn't being properly initialized. The build system doesn't know about this code yet, so no alerts should fire. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152397 91177308-0d34-0410-b5e6-96231b3b80d8