summaryrefslogtreecommitdiffstats
path: root/llgo/debug/debug.go
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [llgo] set debuglocs for calls in synthetic functionsAndrew Wilkins2016-12-061-3/+0
| | | | | | | | | | | | | | | | Synthesized functions do not have valid locations, and so we were not setting a debug location. Recent changes to DI require that function call instructions within a function having DI must have a location set. We just set the debug location to line=0, col=0. Reviewers: pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D22905 llvm-svn: 288772
* [llgo] Fix `debug` to use latest `DIBuilder` bindingsMeador Inge2016-12-061-6/+4
| | | | | | | | | | | | | | Two recent commits to the LLVM Go bindings caused breaking changes to llgo: 1. r284707 - Moving the `AlignInBits` field from `DIBasicType` to `DIAutoVariable`. 2. r284482 - The `AlignInBits` fields going from `uint64` to `uint32`. This commit updates llgo accordingly. llvm-svn: 288768
* [llgo] Increment "Debug Info Version"Andrew Wilkins2016-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | Patch by Michal Cierniak! This patch increments the "Debug Info Version" from 2 to 3. This is a nop if you just want to generate binaries. I verified that with and without this patch, when I run llgo -g on a Go source file, I get exactly the same binary. The purpose of the patch is to make it possible to run the llvm-dis tool. Without the patch, it is impossible to disassemble files generated with llgo: $ llgo -c -g -emit-llvm src/hello.go $ llvm-dis hello.o llvm-dis: warning: ignoring debug info with an invalid version (2) in hello.o Differential Revision: http://reviews.llvm.org/D18355 llvm-svn: 264212
* debug: Update for debug info API change.Peter Collingbourne2015-11-051-1/+1
| | | | llvm-svn: 252221
* [llgo] drop debug/DIBuilder.DeclareAndrew Wilkins2015-09-011-25/+0
| | | | | | | | | | | | | | | | | | | | Summary: Companion to D11864, which updates the DIBuilder bindings to match a recent change in the underlying API. We drop the debug/DIBuilder.Declare method for now, which is unused, as otherwise it will be broken with the new DIBuilder API in the Go bindings. Reviewers: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11891 llvm-svn: 246545
* [llgo] debug: create replaceable type through DIBuilderAndrew Wilkins2015-03-021-4/+12
| | | | | | | | | | | | | | | | | | | | | Summary: llgo was asserting in DebugInfo, which was interpreting the temporary MDNodes we were creating as DIScopes instead of DITypes (in DIScope::getRef). This proposal changes llgo to use DIBuilder's createReplaceableCompositeType method to create a DIType that can be RAUW'd. Reviewers: pcc Reviewed By: pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7852 llvm-svn: 230953
* Roll gotools to 47f2109c.Peter Collingbourne2015-01-131-3/+3
| | | | | | | | | | | At the same time, perform a number of simplifications: - Rename go.tools directory to gotools. - Import only the go directory; all required Go analysis code and its dependencies have now been moved to this directory. llvm-svn: 225825
* Update to new bindings.Peter Collingbourne2014-12-131-51/+45
| | | | llvm-svn: 224180
* Initial commit of llgo.Peter Collingbourne2014-11-271-0/+460
llvm-svn: 222857
OpenPOWER on IntegriCloud