Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 268499a

Browse files
committed
Remove LLVMGetTargetMachineData in go-binding.
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260670 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5403bca commit 268499a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

bindings/go/llvm/target.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@ func (tm TargetMachine) Triple() string {
267267
return C.GoString(cstr)
268268
}
269269

270-
// TargetData returns the TargetData for the machine.
271-
func (tm TargetMachine) TargetData() TargetData {
272-
return TargetData{C.LLVMGetTargetMachineData(tm.C)}
273-
}
274-
275270
func (tm TargetMachine) EmitToMemoryBuffer(m Module, ft CodeGenFileType) (MemoryBuffer, error) {
276271
var errstr *C.char
277272
var mb MemoryBuffer

0 commit comments

Comments
 (0)