llvm.org GIT mirror llvm / 268499a
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 Haojian Wu 4 years ago
1 changed file(s) with 0 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
266266 return C.GoString(cstr)
267267 }
269 // TargetData returns the TargetData for the machine.
270 func (tm TargetMachine) TargetData() TargetData {
271 return TargetData{C.LLVMGetTargetMachineData(tm.C)}
272 }
274269 func (tm TargetMachine) EmitToMemoryBuffer(m Module, ft CodeGenFileType) (MemoryBuffer, error) {
275270 var errstr *C.char
276271 var mb MemoryBuffer