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
2 changes: 2 additions & 0 deletions llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo() {

ExceptionsType = ExceptionHandling::WinEH;

PrivateGlobalPrefix = ".L";
PrivateLabelPrefix = ".L";
AllowAtInName = true;
}
24 changes: 24 additions & 0 deletions llvm/test/CodeGen/Mips/private-global-prefix.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
; RUN: llc -mtriple=mipsel-w64-windows-gnu < %s | FileCheck %s -check-prefix=MIPSEL

define void @f() {
; MIPSEL-LABEL: f:
; MIPSEL: # %bb.0: # %entry
; MIPSEL-NEXT: addiu $sp, $sp, -24
; MIPSEL-NEXT: sw $ra, 20($sp)
; MIPSEL-NEXT: jal LeaveFoo
; MIPSEL-NEXT: nop
; MIPSEL-NEXT: jal LocalBar
; MIPSEL-NEXT: nop
; MIPSEL-NEXT: lw $ra, 20($sp)
; MIPSEL-NEXT: jr $ra
; MIPSEL-NEXT: addiu $sp, $sp, 24

entry:
call void @LeaveFoo()
call void @LocalBar()
ret void
}

declare void @LeaveFoo()
declare void @LocalBar()

Loading