summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-16 00:22:02 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-16 00:22:02 +0000
commitd0aed13e567baefdd464676d5e08c0c5ba0630a6 (patch)
treeb56e0dab5a9a47aace0ff84681ce007151fe3674 /bindings
parentd964cf3e68f59150139ff1beb1d2996e7c27bec3 (diff)
Kill LLVMAddTargetData
Summary: It's red, it's dead. Reviewers: joker.eph, Wallbraker, echristo Subscribers: llvm-commits, axw Differential Revision: http://reviews.llvm.org/D17282 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/executionengine_test.go1
-rw-r--r--bindings/go/llvm/target.go7
2 files changed, 0 insertions, 8 deletions
diff --git a/bindings/go/llvm/executionengine_test.go b/bindings/go/llvm/executionengine_test.go
index 2b6a3caff3d..3ca36d04569 100644
--- a/bindings/go/llvm/executionengine_test.go
+++ b/bindings/go/llvm/executionengine_test.go
@@ -81,7 +81,6 @@ func TestFactorial(t *testing.T) {
pass := NewPassManager()
defer pass.Dispose()
- pass.Add(engine.TargetData())
pass.AddConstantPropagationPass()
pass.AddInstructionCombiningPass()
pass.AddPromoteMemoryToRegisterPass()
diff --git a/bindings/go/llvm/target.go b/bindings/go/llvm/target.go
index 314805665c4..5910b9bb924 100644
--- a/bindings/go/llvm/target.go
+++ b/bindings/go/llvm/target.go
@@ -121,13 +121,6 @@ func NewTargetData(rep string) (td TargetData) {
return
}
-// Adds target data information to a pass manager. This does not take ownership
-// of the target data.
-// See the method llvm::PassManagerBase::add.
-func (pm PassManager) Add(td TargetData) {
- C.LLVMAddTargetData(td.C, pm.C)
-}
-
// Converts target data to a target layout string. The string must be disposed
// with LLVMDisposeMessage.
// See the constructor llvm::TargetData::TargetData.