mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
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
This commit is contained in:
parent
bcbc1b4b16
commit
6ffb3fcad6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user