From ebe01560a3719d643a351ebdd098d40ce3b91076 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 12 Feb 2016 11:35:11 +0000 Subject: [PATCH] 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 llvm-svn: 260670 --- llvm/bindings/go/llvm/target.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/bindings/go/llvm/target.go b/llvm/bindings/go/llvm/target.go index 6b1895b..3148056 100644 --- a/llvm/bindings/go/llvm/target.go +++ b/llvm/bindings/go/llvm/target.go @@ -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 -- 2.7.4