mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Allow target to specify prefix for labels
Use the MCAsmInfo instead of the DataLayout, and allow specifying a custom prefix for labels specifically. HSAIL requires that labels begin with @, but global symbols with &. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4662,7 +4662,7 @@ bool AsmParser::parseMSInlineAsm(
|
||||
OS << "$$";
|
||||
break;
|
||||
case AOK_Label:
|
||||
OS << Ctx.getAsmInfo()->getPrivateGlobalPrefix() << AR.Label;
|
||||
OS << Ctx.getAsmInfo()->getPrivateLabelPrefix() << AR.Label;
|
||||
break;
|
||||
case AOK_Input:
|
||||
OS << '$' << InputIdx++;
|
||||
|
Reference in New Issue
Block a user