llvm-6502/bindings/go/llvm
Duncan P. N. Exon Smith 8ec0aee3b4 IR: Remove MDNodeFwdDecl
Remove `MDNodeFwdDecl` (as promised in r226481).  Aside from API
changes, there's no real functionality change here.
`MDNode::getTemporary()` now forwards to `MDTuple::getTemporary()`,
which returns a tuple with `isTemporary()` equal to true.

The main point is that we can now add temporaries of other `MDNode`
subclasses, needed for PR22235 (I introduced `MDNodeFwdDecl` in the
first place because I didn't recognize this need, and thought they were
only needed to handle forward references).

A few things left out of (or highlighted by) this commit:

  - I've had to remove the (few) uses of `std::unique_ptr<>` to deal
    with temporaries, since the destructor is no longer public.
    `getTemporary()` should probably return the equivalent of
    `std::unique_ptr<T, MDNode::deleteTemporary>`.
  - `MDLocation::getTemporary()` doesn't exist yet (worse, it actually
    does exist, but does the wrong thing: `MDNode::getTemporary()` is
    inherited and returns an `MDTuple`).
  - `MDNode` now only has one subclass, `UniquableMDNode`, and the
    distinction between them is actually somewhat confusing.

I'll fix those up next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226501 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-19 20:36:39 +00:00
..
analysis.go
bitreader.go
bitwriter.go
dibuilder.go Go bindings: expose the Metadata type. 2014-12-13 02:25:49 +00:00
DIBuilderBindings.cpp Go bindings: expose the Metadata type. 2014-12-13 02:25:49 +00:00
DIBuilderBindings.h Go bindings: expose the Metadata type. 2014-12-13 02:25:49 +00:00
executionengine_test.go Add bindings for the rest of the MCJIT options that we previously 2014-12-02 21:09:01 +00:00
executionengine.go Add bindings for the rest of the MCJIT options that we previously 2014-12-02 21:09:01 +00:00
InstrumentationBindings.cpp
InstrumentationBindings.h
ir_test.go
ir.go Go bindings: introduce Value.ConstantAsMetadata. 2014-12-13 02:25:57 +00:00
IRBindings.cpp IR: Remove MDNodeFwdDecl 2015-01-19 20:36:39 +00:00
IRBindings.h Go bindings: introduce Value.ConstantAsMetadata. 2014-12-13 02:25:57 +00:00
linker.go Finish removing DestroySource. 2014-12-23 19:16:45 +00:00
llvm_config.go.in
llvm_dep.go
string_test.go
string.go
support.go
SupportBindings.cpp
SupportBindings.h
target.go
transforms_instrumentation.go
transforms_ipo.go
transforms_pmbuilder.go
transforms_scalar.go
version.go Expose LLVM version string via macro in llvm-config.h, and modify Go bindings 2014-11-19 03:34:17 +00:00