summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/MCTargetDesc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-18 19:08:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-18 19:08:20 +0000
commit105270f68ca894e205b97b3c7ed709affa7df4fe (patch)
treeacf83ac0ce278e523d3a8c297d3f010ae30fa465 /llvm/lib/Target/SystemZ/MCTargetDesc
parent36ccfa5779bb43b4ff4847769c6dbab68b62a614 (diff)
downloadbcm5719-llvm-105270f68ca894e205b97b3c7ed709affa7df4fe.tar.gz
bcm5719-llvm-105270f68ca894e205b97b3c7ed709affa7df4fe.zip
Add a default implementation of createObjectStreamer.
This removes duplicated code from backends that don't need to do anything fancy. llvm-svn: 232658
Diffstat (limited to 'llvm/lib/Target/SystemZ/MCTargetDesc')
-rw-r--r--llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
index fb9645723ff..ffd05a94afc 100644
--- a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
+++ b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
@@ -181,12 +181,6 @@ static MCInstPrinter *createSystemZMCInstPrinter(const Target &T,
return new SystemZInstPrinter(MAI, MII, MRI);
}
-static MCStreamer *createSystemZMCObjectStreamer(
- const Triple &T, MCContext &Ctx, MCAsmBackend &MAB, raw_ostream &OS,
- MCCodeEmitter *Emitter, const MCSubtargetInfo &STI, bool RelaxAll) {
- return createELFStreamer(Ctx, MAB, OS, Emitter, RelaxAll);
-}
-
extern "C" void LLVMInitializeSystemZTargetMC() {
// Register the MCAsmInfo.
TargetRegistry::RegisterMCAsmInfo(TheSystemZTarget,
@@ -219,8 +213,4 @@ extern "C" void LLVMInitializeSystemZTargetMC() {
// Register the MCInstPrinter.
TargetRegistry::RegisterMCInstPrinter(TheSystemZTarget,
createSystemZMCInstPrinter);
-
- // Register the MCObjectStreamer;
- TargetRegistry::RegisterMCObjectStreamer(TheSystemZTarget,
- createSystemZMCObjectStreamer);
}
OpenPOWER on IntegriCloud