diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-22 13:24:07 +0000 | 
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-22 13:24:07 +0000 | 
| commit | d7bdaf5795b3c3d5d08381cb078c80d39ed8da74 (patch) | |
| tree | 73163b6e9cd47ece15c3fc1f68a380b6d1f666c3 /llvm/lib/MC | |
| parent | 5b01415dc03c03783166ac6317c83f898efc2d79 (diff) | |
| download | bcm5719-llvm-d7bdaf5795b3c3d5d08381cb078c80d39ed8da74.tar.gz bcm5719-llvm-d7bdaf5795b3c3d5d08381cb078c80d39ed8da74.zip  | |
Fix a FIXME: DwarfRequiresRelocationForSectionOffset is the same as
DwarfUsesRelocationsAcrossSections.
llvm-svn: 158992
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/MC/MCAsmInfoDarwin.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 4 | 
3 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index beb20e8f159..6e659506b9d 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -84,7 +84,6 @@ MCAsmInfo::MCAsmInfo() {    SupportsDebugInformation = false;    ExceptionsType = ExceptionHandling::None;    DwarfUsesInlineInfoSection = false; -  DwarfRequiresRelocationForSectionOffset = true;    DwarfSectionOffsetDirective = 0;    DwarfUsesRelocationsAcrossSections = true;    DwarfUsesRelocationsForStringPool = true; diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp index 7c271a9e824..4c4f5edc83e 100644 --- a/llvm/lib/MC/MCAsmInfoDarwin.cpp +++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp @@ -59,7 +59,6 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {    HasNoDeadStrip = true;    HasSymbolResolver = true; -  DwarfRequiresRelocationForSectionOffset = false;    DwarfUsesRelocationsAcrossSections = false;    DwarfUsesRelocationsForStringPool = false;  } diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index 91864fb7a8a..918045b152a 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -705,7 +705,7 @@ void MCGenDwarfInfo::Emit(MCStreamer *MCOS, const MCSymbol *LineSectionSymbol) {    MCOS->SwitchSection(context.getObjectFileInfo()->getDwarfInfoSection());    MCOS->SwitchSection(context.getObjectFileInfo()->getDwarfAbbrevSection());    MCSymbol *AbbrevSectionSymbol; -  if (AsmInfo.doesDwarfRequireRelocationForSectionOffset()) { +  if (AsmInfo.doesDwarfUseRelocationsAcrossSections()) {      AbbrevSectionSymbol = context.CreateTempSymbol();      MCOS->EmitLabel(AbbrevSectionSymbol);    } else { @@ -1285,7 +1285,7 @@ MCSymbol *FrameEmitterImpl::EmitFDE(MCStreamer &streamer,                                                   0);      if (verboseAsm) streamer.AddComment("FDE CIE Offset");      streamer.EmitAbsValue(offset, 4); -  } else if (!asmInfo.doesDwarfRequireRelocationForSectionOffset()) { +  } else if (!asmInfo.doesDwarfUseRelocationsAcrossSections()) {      const MCExpr *offset = MakeStartMinusEndExpr(streamer, *SectionStart,                                                   cieStart, 0);      streamer.EmitAbsValue(offset, 4);  | 

