mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Dead files. Functionality has been taken over by the Add*Writer functions.
llvm-svn: 34029
This commit is contained in:
parent
9fb358c70f
commit
abb65b1d4d
@ -1,36 +0,0 @@
|
||||
//===-- PPCMachOWriter.cpp - Emit a Mach-O file for the PowerPC backend ---===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file was developed by Nate Begeman and is distributed under
|
||||
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements a Mach-O writer for the PowerPC backend. The public
|
||||
// interface to this file is the createPPCMachOObjectWriterPass function.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "PPCTargetMachine.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/CodeGen/MachOWriter.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
struct VISIBILITY_HIDDEN PPCMachOWriter : public MachOWriter {
|
||||
PPCMachOWriter(std::ostream &O, PPCTargetMachine &TM)
|
||||
: MachOWriter(O, TM) {}
|
||||
};
|
||||
}
|
||||
|
||||
/// addPPCMachOObjectWriterPass - Returns a pass that outputs the generated code
|
||||
/// as a Mach-O object file.
|
||||
///
|
||||
void llvm::addPPCMachOObjectWriterPass(FunctionPassManager &FPM,
|
||||
std::ostream &O, PPCTargetMachine &TM) {
|
||||
PPCMachOWriter *MOW = new PPCMachOWriter(O, TM);
|
||||
FPM.add(MOW);
|
||||
FPM.add(createPPCCodeEmitterPass(TM, MOW->getMachineCodeEmitter()));
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
//===-- X86ELFWriter.cpp - Emit an ELF file for the X86 backend -----------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file was developed by the LLVM research group and is distributed under
|
||||
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file implements an ELF writer for the X86 backend. The public interface
|
||||
// to this file is the createX86ELFObjectWriterPass function.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "X86.h"
|
||||
#include "X86TargetMachine.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/CodeGen/ELFWriter.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN X86ELFWriter : public ELFWriter {
|
||||
public:
|
||||
X86ELFWriter(std::ostream &O, X86TargetMachine &TM) : ELFWriter(O, TM) {
|
||||
e_machine = 3; // EM_386
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/// addX86ELFObjectWriterPass - Returns a pass that outputs the generated code
|
||||
/// as an ELF object file.
|
||||
///
|
||||
void llvm::addX86ELFObjectWriterPass(FunctionPassManager &FPM,
|
||||
std::ostream &O, X86TargetMachine &TM) {
|
||||
X86ELFWriter *EW = new X86ELFWriter(O, TM);
|
||||
FPM.add(EW);
|
||||
FPM.add(createX86CodeEmitterPass(TM, EW->getMachineCodeEmitter()));
|
||||
}
|
Loading…
Reference in New Issue
Block a user