From: Rafael Espindola Date: Thu, 17 Dec 2015 14:19:52 +0000 (+0000) Subject: Simplify. NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=adb5a4d946d1f657c63849d17852276e1604cc9c;p=oota-llvm.git Simplify. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255894 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp b/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp index 75ba12b5a83..dd994956870 100644 --- a/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp +++ b/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp @@ -113,13 +113,10 @@ unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target, break; } break; - case PPC::fixup_ppc_half16ds: { - raw_ostream &OS = *(new raw_fd_ostream(2, false)); - Target.print(OS); - OS << "\n"; + case PPC::fixup_ppc_half16ds: + Target.print(errs()); + errs() << '\n'; report_fatal_error("Invalid PC-relative half16ds relocation"); - break; - } case FK_Data_4: case FK_PCRel_4: Type = ELF::R_PPC_REL32;