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

           Summary: MCAsmStreamer::EmitSymbolAttribute does not use
                    MCAsmInfo settings
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: code-cleanup, miscompilation
          Severity: minor
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


MCAsmStreamer::EmitSymbolAttribute in lib/MC/MCAsmStreamer.cpp prints
directives for symbols. The directives e.g. '.globl' for a global variable are
hardcoded. If a backend specifies a different GlobalDirective, e.g.
'\t.global\t' in an MCAsmInfo subclass, this directive is not used (triggered
in a custom backend).

AsmPrinter.cpp calls EmitSymbolAttribute in e.g. AsmPrinter::EmitGlobalVariable

Please update EmitSymbolAttribute function to use the MCAsmInfo directives.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to