llvm.org GIT mirror llvm / 30da795
Revert 239698 - Accidentally committed more than intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@239699 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Sanders 4 years ago
5 changed file(s) with 3 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
655655 (void)BlockNumber;
656656 bool MatchFilterBB = false; (void)MatchFilterBB;
657657 #ifndef NDEBUG
658 MatchFilterBB = (FilterDAGBasicBlockName.empty() ||
658 MatchFilterBB = (!FilterDAGBasicBlockName.empty() &&
659659 FilterDAGBasicBlockName ==
660660 FuncInfo->MBB->getBasicBlock()->getName().str());
661661 #endif
349349 // eh_frame section can be read-only. DW.ref.personality will be generated
350350 // for relocation.
351351 PersonalityEncoding = dwarf::DW_EH_PE_indirect;
352 LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
353 TTypeEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
354352 break;
355353 case Triple::ppc64:
356354 case Triple::ppc64le:
5454 default:
5555 llvm_unreachable("invalid fixup kind!");
5656 case FK_Data_4:
57 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32;
57 Type = ELF::R_MIPS_32;
58 break;
5859 case FK_Data_8:
5960 Type = ELF::R_MIPS_64;
6061 break;
2828 #include "llvm/CodeGen/MachineInstr.h"
2929 #include "llvm/CodeGen/MachineJumpTableInfo.h"
3030 #include "llvm/CodeGen/MachineMemOperand.h"
31 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
32 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
3331 #include "llvm/IR/BasicBlock.h"
3432 #include "llvm/IR/DataLayout.h"
3533 #include "llvm/IR/InlineAsm.h"
10341032 }
10351033 // return to the text section
10361034 OutStreamer.SwitchSection(OutContext.getObjectFileInfo()->getTextSection());
1037
1038 /* if (Subtarget->isTargetELF()) */ {
1039 const TargetLoweringObjectFileELF &TLOFELF =
1040 static_cast(getObjFileLowering());
1041
1042 MachineModuleInfoELF &MMIELF = MMI->getObjFileInfo();
1043
1044 // Output stubs for external and common global variables.
1045 MachineModuleInfoELF::SymbolListTy Stubs = MMIELF.GetGVStubList();
1046 if (!Stubs.empty()) {
1047 OutStreamer.SwitchSection(TLOFELF.getDataRelSection());
1048 const DataLayout *TD = TM.getSubtargetImpl()->getDataLayout();
1049
1050 for (const auto &Stub : Stubs) {
1051 OutStreamer.EmitLabel(Stub.first);
1052 OutStreamer.EmitSymbolValue(Stub.second.getPointer(),
1053 TD->getPointerSize());
1054 }
1055 Stubs.clear();
1056 }
1057 }
10581035 }
10591036
10601037 void MipsAsmPrinter::PrintDebugValueComment(const MachineInstr *MI,
+0
-10
test/MC/Mips/relocation.s less more
None // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux < %s | llvm-readobj -r | FileCheck %s
1
2 // Test that we produce the correct relocation.
3 // FIXME: move more relocation only tests here.
4
5 .long foo
6 // CHECK: R_MIPS_32 foo
7
8 .long foo-.
9 // CHECK: R_MIPS_PC32 foo