Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions llvm/lib/MC/MCParser/ELFAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ bool ELFAsmParser::ParseSectionArguments(bool IsPush, SMLoc loc) {
}

if (getLexer().isNot(AsmToken::String)) {
if (!getContext().getAsmInfo()->usesSunStyleELFSectionSwitchSyntax()
|| getLexer().isNot(AsmToken::Hash))
if (getLexer().isNot(AsmToken::Hash))
return TokError("expected string in directive");
extraFlags = parseSunStyleSectionFlags();
} else {
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Triple &TheTriple) {

ExceptionsType = ExceptionHandling::DwarfCFI;

SunStyleELFSectionSwitchSyntax = true;
UsesELFSectionDirectiveForBSS = true;
}

Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
; PR 1557

target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128"
module asm "\09.section\09\22.ctors\22,#alloc,#write"
module asm "\09.section\09\22.dtors\22,#alloc,#write"
module asm "\09.section\09.ctors,\22aw\22"
module asm "\09.section\09.dtors,\22aw\22"

define void @frame_dummy() nounwind {
entry:
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/CodeGen/SPARC/constructor.ll
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ entry:
ret void
}

; CTOR: .section .ctors,#alloc,#write
; CTOR: .section .ctors,"aw"
; CTOR-NEXT: .p2align 2
; CTOR-NEXT: .word f
; CTOR-NEXT: .section .ctors.65520,#alloc,#write
; CTOR-NEXT: .section .ctors.65520,"aGw"
; CTOR-NEXT: .p2align 2
; CTOR-NEXT: .word g

; INIT-ARRAY: .section .init_array.15,#alloc,#write
; INIT-ARRAY: .section .init_array.15,"aGw"
; INIT-ARRAY-NEXT: .p2align 2
; INIT-ARRAY-NEXT: .word g
; INIT-ARRAY-NEXT: .section .init_array,#alloc,#write
; INIT-ARRAY-NEXT: .section .init_array,"aw"
; INIT-ARRAY-NEXT: .p2align 2
; INIT-ARRAY-NEXT: .word f