[PATCH] D17282: Kill LLVMAddTargetData
Amaury SECHET via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 15 15:38:59 PST 2016
deadalnix created this revision.
deadalnix added reviewers: joker.eph, Wallbraker, echristo.
deadalnix added subscribers: axw, llvm-commits.
It's red, it's dead.
http://reviews.llvm.org/D17282
Files:
bindings/go/llvm/executionengine_test.go
bindings/go/llvm/target.go
include/llvm-c/Target.h
lib/Target/Target.cpp
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
Index: unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
===================================================================
--- unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
+++ unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
@@ -285,7 +285,6 @@
void buildAndRunPasses() {
LLVMPassManagerRef pass = LLVMCreatePassManager();
- LLVMAddTargetData(LLVMGetExecutionEngineTargetData(Engine), pass);
LLVMAddConstantPropagationPass(pass);
LLVMAddInstructionCombiningPass(pass);
LLVMRunPassManager(pass, Module);
@@ -304,8 +303,6 @@
LLVMPassManagerRef modulePasses =
LLVMCreatePassManager();
- LLVMAddTargetData(LLVMGetExecutionEngineTargetData(Engine), modulePasses);
-
LLVMPassManagerBuilderPopulateFunctionPassManager(passBuilder,
functionPasses);
LLVMPassManagerBuilderPopulateModulePassManager(passBuilder, modulePasses);
Index: lib/Target/Target.cpp
===================================================================
--- lib/Target/Target.cpp
+++ lib/Target/Target.cpp
@@ -46,9 +46,6 @@
return wrap(new DataLayout(StringRep));
}
-void LLVMAddTargetData(LLVMTargetDataRef TD, LLVMPassManagerRef PM) {
-}
-
void LLVMAddTargetLibraryInfo(LLVMTargetLibraryInfoRef TLI,
LLVMPassManagerRef PM) {
unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI)));
Index: include/llvm-c/Target.h
===================================================================
--- include/llvm-c/Target.h
+++ include/llvm-c/Target.h
@@ -187,11 +187,6 @@
See the constructor llvm::DataLayout::DataLayout. */
LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep);
-/** Adds target data information to a pass manager. This does not take ownership
- of the target data.
- See the method llvm::PassManagerBase::add. */
-void LLVMAddTargetData(LLVMTargetDataRef TD, LLVMPassManagerRef PM);
-
/** Adds target library information to a pass manager. This does not take
ownership of the target library info.
See the method llvm::PassManagerBase::add. */
Index: bindings/go/llvm/target.go
===================================================================
--- bindings/go/llvm/target.go
+++ bindings/go/llvm/target.go
@@ -121,13 +121,6 @@
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.
Index: bindings/go/llvm/executionengine_test.go
===================================================================
--- bindings/go/llvm/executionengine_test.go
+++ bindings/go/llvm/executionengine_test.go
@@ -81,7 +81,6 @@
pass := NewPassManager()
defer pass.Dispose()
- pass.Add(engine.TargetData())
pass.AddConstantPropagationPass()
pass.AddInstructionCombiningPass()
pass.AddPromoteMemoryToRegisterPass()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17282.48025.patch
Type: text/x-patch
Size: 3138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160215/7928387d/attachment.bin>
More information about the llvm-commits
mailing list