Loading llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -656,7 +656,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() { (void)BlockNumber; bool MatchFilterBB = false; (void)MatchFilterBB; #ifndef NDEBUG MatchFilterBB = (FilterDAGBasicBlockName.empty() || MatchFilterBB = (!FilterDAGBasicBlockName.empty() && FilterDAGBasicBlockName == FuncInfo->MBB->getBasicBlock()->getName().str()); #endif Loading llvm/lib/MC/MCObjectFileInfo.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -350,8 +350,6 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { // eh_frame section can be read-only. DW.ref.personality will be generated // for relocation. PersonalityEncoding = dwarf::DW_EH_PE_indirect; LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; TTypeEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; break; case Triple::ppc64: case Triple::ppc64le: Loading llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,8 @@ unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target, default: llvm_unreachable("invalid fixup kind!"); case FK_Data_4: return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; Type = ELF::R_MIPS_32; break; case FK_Data_8: Type = ELF::R_MIPS_64; break; Loading llvm/lib/Target/Mips/MipsAsmPrinter.cpp +0 −23 Original line number Diff line number Diff line Loading @@ -29,8 +29,6 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineJumpTableInfo.h" #include "llvm/CodeGen/MachineMemOperand.h" #include "llvm/CodeGen/MachineModuleInfoImpls.h" #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/InlineAsm.h" Loading Loading @@ -1035,27 +1033,6 @@ void MipsAsmPrinter::EmitEndOfAsmFile(Module &M) { } // return to the text section OutStreamer.SwitchSection(OutContext.getObjectFileInfo()->getTextSection()); /* if (Subtarget->isTargetELF()) */ { const TargetLoweringObjectFileELF &TLOFELF = static_cast<const TargetLoweringObjectFileELF &>(getObjFileLowering()); MachineModuleInfoELF &MMIELF = MMI->getObjFileInfo<MachineModuleInfoELF>(); // Output stubs for external and common global variables. MachineModuleInfoELF::SymbolListTy Stubs = MMIELF.GetGVStubList(); if (!Stubs.empty()) { OutStreamer.SwitchSection(TLOFELF.getDataRelSection()); const DataLayout *TD = TM.getSubtargetImpl()->getDataLayout(); for (const auto &Stub : Stubs) { OutStreamer.EmitLabel(Stub.first); OutStreamer.EmitSymbolValue(Stub.second.getPointer(), TD->getPointerSize()); } Stubs.clear(); } } } void MipsAsmPrinter::PrintDebugValueComment(const MachineInstr *MI, Loading llvm/test/MC/Mips/relocation.sdeleted 100644 → 0 +0 −10 Original line number Diff line number Diff line // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux < %s | llvm-readobj -r | FileCheck %s // Test that we produce the correct relocation. // FIXME: move more relocation only tests here. .long foo // CHECK: R_MIPS_32 foo .long foo-. // CHECK: R_MIPS_PC32 foo Loading
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -656,7 +656,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() { (void)BlockNumber; bool MatchFilterBB = false; (void)MatchFilterBB; #ifndef NDEBUG MatchFilterBB = (FilterDAGBasicBlockName.empty() || MatchFilterBB = (!FilterDAGBasicBlockName.empty() && FilterDAGBasicBlockName == FuncInfo->MBB->getBasicBlock()->getName().str()); #endif Loading
llvm/lib/MC/MCObjectFileInfo.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -350,8 +350,6 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { // eh_frame section can be read-only. DW.ref.personality will be generated // for relocation. PersonalityEncoding = dwarf::DW_EH_PE_indirect; LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; TTypeEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; break; case Triple::ppc64: case Triple::ppc64le: Loading
llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,8 @@ unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target, default: llvm_unreachable("invalid fixup kind!"); case FK_Data_4: return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; Type = ELF::R_MIPS_32; break; case FK_Data_8: Type = ELF::R_MIPS_64; break; Loading
llvm/lib/Target/Mips/MipsAsmPrinter.cpp +0 −23 Original line number Diff line number Diff line Loading @@ -29,8 +29,6 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineJumpTableInfo.h" #include "llvm/CodeGen/MachineMemOperand.h" #include "llvm/CodeGen/MachineModuleInfoImpls.h" #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/InlineAsm.h" Loading Loading @@ -1035,27 +1033,6 @@ void MipsAsmPrinter::EmitEndOfAsmFile(Module &M) { } // return to the text section OutStreamer.SwitchSection(OutContext.getObjectFileInfo()->getTextSection()); /* if (Subtarget->isTargetELF()) */ { const TargetLoweringObjectFileELF &TLOFELF = static_cast<const TargetLoweringObjectFileELF &>(getObjFileLowering()); MachineModuleInfoELF &MMIELF = MMI->getObjFileInfo<MachineModuleInfoELF>(); // Output stubs for external and common global variables. MachineModuleInfoELF::SymbolListTy Stubs = MMIELF.GetGVStubList(); if (!Stubs.empty()) { OutStreamer.SwitchSection(TLOFELF.getDataRelSection()); const DataLayout *TD = TM.getSubtargetImpl()->getDataLayout(); for (const auto &Stub : Stubs) { OutStreamer.EmitLabel(Stub.first); OutStreamer.EmitSymbolValue(Stub.second.getPointer(), TD->getPointerSize()); } Stubs.clear(); } } } void MipsAsmPrinter::PrintDebugValueComment(const MachineInstr *MI, Loading
llvm/test/MC/Mips/relocation.sdeleted 100644 → 0 +0 −10 Original line number Diff line number Diff line // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux < %s | llvm-readobj -r | FileCheck %s // Test that we produce the correct relocation. // FIXME: move more relocation only tests here. .long foo // CHECK: R_MIPS_32 foo .long foo-. // CHECK: R_MIPS_PC32 foo