[LLVMbugs] [Bug 4966] New: assembly printer fails to print reference to global var

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Sep 12 16:32:15 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4966

           Summary: assembly printer fails to print reference to global var
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


There was a recent regression in the assembly code printer. I believe it was in
r81508 (2009-09-11 06:58:44 +0100 (Fri, 11 Sep 2009)), but I didn't confirm.


$ llc foo.ll
$ cat foo.ll
@"__PRETTY_FUNCTION__.int main(int, char **)" = private constant [23 x i8]
c"int main(int, char **)\00" ; <[23 x i8]*> [#uses=1]

declare void @__assert_fail(i8*)

define void @main() nounwind {
entry:
  call void @__assert_fail(i8* getelementptr inbounds ([23 x i8]*
@"__PRETTY_FUNCTION__.int main(int, char **)", i32 0, i32 0))
  ret void
}

$ cat foo.ll.s
(...)
main:                                                       # @main
.LBB1_0:                                                    # %entry
        subl    $4, %esp
        movl    $.L__PRETTY_FUNCTION__.int main(int, char **), (%esp)
(...)
        .section        .rodata.str1.16,"aMS", at progbits,1
        .align  16
.L__PRETTY_FUNCTION__.int_20_main_28_int_2C__20_char_20__2A__2A__29_: #
@"__PRETTY_FUNCTION__.int main(int, char **)"
        .asciz  "int main(int, char **)"
        .size  
.L__PRETTY_FUNCTION__.int_20_main_28_int_2C__20_char_20__2A__2A__29_, 23


note that the GV symbol name in the movl is not mangled, and in the GV decl is.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list