Skip to content

Commit

Permalink
Remove LLVMGetTargetMachineData in go-binding.
Browse files Browse the repository at this point in the history
Summary:
LLVMGetTargetMachineData has been removed, and LLVMGetDataLayout is
suggested to use. The LLVMGetDataLayout is exposed in go bindings.
So it's safe to remove the function.

Reviewers: bkramer

Subscribers: llvm-commits, axw

Differential Revision: http://reviews.llvm.org/D17193

llvm-svn: 260670
  • Loading branch information
hokein committed Feb 12, 2016
1 parent fe567fb commit ebe0156
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions llvm/bindings/go/llvm/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ func (tm TargetMachine) Triple() string {
return C.GoString(cstr)
}

// TargetData returns the TargetData for the machine.
func (tm TargetMachine) TargetData() TargetData {
return TargetData{C.LLVMGetTargetMachineData(tm.C)}
}

func (tm TargetMachine) EmitToMemoryBuffer(m Module, ft CodeGenFileType) (MemoryBuffer, error) {
var errstr *C.char
var mb MemoryBuffer
Expand Down

0 comments on commit ebe0156

Please sign in to comment.