[LLVMbugs] [Bug 20127] New: Mangler::getNameWithPrefix behavior differers string overload and GV overload

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 25 13:59:23 PDT 2014


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

            Bug ID: 20127
           Summary: Mangler::getNameWithPrefix behavior differers string
                    overload and GV overload
           Product: libraries
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: jsweval at arxan.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When calling Mangler::getNameWithPrefix() with a GlobalVariable, the mangler
correctly notices a leading \1 "don't mangle me" sentinel, strips the sentinel,
and returns the unmangled symbol name.

When calling Mangler::getNameWithPrefix() with a Twine, the mangler does not
check for the \1 sentinel. This causes it to return a symbol like "_\1+[Class
method]" instead of "+[Class method]".

I believe that r200367 introduced the change in behavior.
http://reviews.llvm.org/rL200367

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140625/fcbbe4a6/attachment.html>


More information about the llvm-bugs mailing list