[llvm] r260670 - Remove LLVMGetTargetMachineData in go-binding.

Haojian Wu via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 03:35:12 PST 2016


Author: hokein
Date: Fri Feb 12 05:35:11 2016
New Revision: 260670

URL: http://llvm.org/viewvc/llvm-project?rev=260670&view=rev
Log:
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

Modified:
    llvm/trunk/bindings/go/llvm/target.go

Modified: llvm/trunk/bindings/go/llvm/target.go
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/target.go?rev=260670&r1=260669&r2=260670&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/target.go (original)
+++ llvm/trunk/bindings/go/llvm/target.go Fri Feb 12 05:35:11 2016
@@ -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




More information about the llvm-commits mailing list