summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bindings/llvm-c
Commit message (Collapse)AuthorAgeFilesLines
* Add a new attribute: norecurseJames Molloy2015-11-062-1/+1
| | | | | | This attribute allows the compiler to assume that the function never recurses into itself, either directly or indirectly (transitively). This can be used among other things to demote global variables to locals. llvm-svn: 252282
* test: Move target dependent test in their own folder for c API testJustin Bogner2015-06-234-24/+25
| | | | | | | | | | Dissasembly tests depends on target. The problem is that it disable all tests if all targets are not compiled. This moves things around in order to get target specific code in a target specific folder. Patch by Amaury Sechet. Thanks! llvm-svn: 240380
* Propagate a better error message to the C api.Rafael Espindola2015-02-031-1/+1
| | | | llvm-svn: 227934
* Use a non-fatal diag handler in the C API. FIxes PR22368.Rafael Espindola2015-02-032-0/+3
| | | | llvm-svn: 227903
* Fix LLVMSetMetadata and LLVMAddNamedMetadataOperand for single value MDNodesBjorn Steinbrink2015-01-282-0/+4
| | | | | | | | | | | | | Summary: MetadataAsValue uses a canonical format that strips the MDNode if it contains only a single constant value. This triggers an assertion when trying to cast the value to a MDNode. Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7165 llvm-svn: 227319
* Extend C disassembler API to allow specifying target featuresBradley Smith2014-09-301-6/+20
| | | | llvm-svn: 218682
* Restore the ability to check if LLVMCreateObjectFile was successfulBjorn Steinbrink2014-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | Summary: Until r216870 LLVMCreateObjectFile returned nullptr in case of an error, so callers could check if the call was successful. Now, it always returns an OwningBinary wrapped as an LLVMObjectFileRef, so callers can't check if the call was successul. This results in a segfault running e.g. llvm-c-test --object-list-sections < /dev/null So the old behaviour should be restored. Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5143 llvm-svn: 217279
* Reduce verbiage of lit.local.cfg filesAlp Toker2014-06-091-3/+2
| | | | | | We can just split targets_to_build in one place and make it immutable. llvm-svn: 210496
* Fix check for supported targets in llvm-c lit.local.cfgAnders Waldenborg2013-10-231-1/+3
| | | | llvm-svn: 193235
* Add llvm-c-test tool for testing llvm-cAnders Waldenborg2013-10-235-0/+85
This provides rudimentary testing of the llvm-c api. The following commands are implemented: * --module-dump Read bytecode from stdin - print ir * --module-list-functions Read bytecode from stdin - list summary of functions * --module-list-globals Read bytecode from stdin - list summary of globals * --targets-list List available targets * --object-list-sections Read object file from stdin - list sections * --object-list-symbols Read object file from stdin - list symbols (like nm) * --disassemble Read lines of triple, hex ascii machine code from stdin - print disassembly * --calc Read lines of name, rpn from stdin - print generated module ir Differential-Revision: http://llvm-reviews.chandlerc.com/D1776 llvm-svn: 193233
OpenPOWER on IntegriCloud