mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 16:35:10 +00:00
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
This commit is contained in:
parent
d964cf3e68
commit
d0aed13e56
@ -81,7 +81,6 @@ func TestFactorial(t *testing.T) {
|
||||
pass := NewPassManager()
|
||||
defer pass.Dispose()
|
||||
|
||||
pass.Add(engine.TargetData())
|
||||
pass.AddConstantPropagationPass()
|
||||
pass.AddInstructionCombiningPass()
|
||||
pass.AddPromoteMemoryToRegisterPass()
|
||||
|
@ -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.
|
||||
|
@ -42,6 +42,8 @@ Non-comprehensive list of changes in this release
|
||||
|
||||
* The C API function LLVMLinkModules has been removed.
|
||||
|
||||
* The C API function LLVMAddTargetData has been removed.
|
||||
|
||||
.. NOTE
|
||||
For small 1-3 sentence descriptions, just add an entry at the end of
|
||||
this list. If your description won't fit comfortably in one bullet
|
||||
|
@ -187,11 +187,6 @@ static inline LLVMBool LLVMInitializeNativeDisassembler(void) {
|
||||
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. */
|
||||
|
@ -46,9 +46,6 @@ LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep) {
|
||||
return wrap(new DataLayout(StringRep));
|
||||
}
|
||||
|
||||
void LLVMAddTargetData(LLVMTargetDataRef TD, LLVMPassManagerRef PM) {
|
||||
}
|
||||
|
||||
void LLVMAddTargetLibraryInfo(LLVMTargetLibraryInfoRef TLI,
|
||||
LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI)));
|
||||
|
@ -285,7 +285,6 @@ protected:
|
||||
|
||||
void buildAndRunPasses() {
|
||||
LLVMPassManagerRef pass = LLVMCreatePassManager();
|
||||
LLVMAddTargetData(LLVMGetExecutionEngineTargetData(Engine), pass);
|
||||
LLVMAddConstantPropagationPass(pass);
|
||||
LLVMAddInstructionCombiningPass(pass);
|
||||
LLVMRunPassManager(pass, Module);
|
||||
@ -304,8 +303,6 @@ protected:
|
||||
LLVMPassManagerRef modulePasses =
|
||||
LLVMCreatePassManager();
|
||||
|
||||
LLVMAddTargetData(LLVMGetExecutionEngineTargetData(Engine), modulePasses);
|
||||
|
||||
LLVMPassManagerBuilderPopulateFunctionPassManager(passBuilder,
|
||||
functionPasses);
|
||||
LLVMPassManagerBuilderPopulateModulePassManager(passBuilder, modulePasses);
|
||||
|
Loading…
x
Reference in New Issue
Block a user