1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/bindings/go/llvm
Andrew Wilkins 1d34613c6f Go binding: Add GetCurrentDebugLocation to obtain debug location from builder
Summary:

Currently Go binding only has SetCurrentDebugLocation method.
I added GetCurrentDebugLocation method to IRBuilder instance.

I added this because I want to save current debug location, change debug location temporary and restore the saved one finally.
This is useful when source location jumps and goes back after while LLVM IR generation.

I also added tests for this to ir_test.go.
I confirmed that all test passed with this patch based on r298890

Patch by Ryuichi Hayashida!

Differential Revision: https://reviews.llvm.org/D31415

llvm-svn: 299185
2017-03-31 04:59:57 +00:00
..
analysis.go
bitreader.go
bitwriter.go
dibuilder.go [Go bindings] Update for r284678 API changes. 2016-10-20 09:14:39 +00:00
DIBuilderBindings.cpp [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
DIBuilderBindings.h [Go bindings] Update for r284678 API changes. 2016-10-20 09:14:39 +00:00
executionengine_test.go
executionengine.go
InstrumentationBindings.cpp
InstrumentationBindings.h
ir_test.go Go binding: Add GetCurrentDebugLocation to obtain debug location from builder 2017-03-31 04:59:57 +00:00
ir.go Go binding: Add GetCurrentDebugLocation to obtain debug location from builder 2017-03-31 04:59:57 +00:00
IRBindings.cpp Go binding: Add GetCurrentDebugLocation to obtain debug location from builder 2017-03-31 04:59:57 +00:00
IRBindings.h Go binding: Add GetCurrentDebugLocation to obtain debug location from builder 2017-03-31 04:59:57 +00:00
linker.go
llvm_config.go.in
llvm_dep.go
string_test.go
string.go
support.go
SupportBindings.cpp
SupportBindings.h
target.go bindings/go: reinstate TargetMachine.TargetData 2016-03-15 05:04:06 +00:00
transforms_instrumentation.go
transforms_ipo.go
transforms_pmbuilder.go Go binding: Add methods for missing PassManagerBuilder C APIs 2017-02-17 05:41:05 +00:00
transforms_scalar.go
version.go