summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-12-04 00:06:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-12-04 00:06:57 +0000
commit4e27343eec284d9028617171a82a5816420fe4c7 (patch)
treee1f2a4622f68ba63debb758e0c30e372caecc196 /llvm/lib/MC/MCParser/AsmParser.cpp
parenta7eb3cb46e83a6c275cd212c95497627e157aa98 (diff)
downloadbcm5719-llvm-4e27343eec284d9028617171a82a5816420fe4c7.tar.gz
bcm5719-llvm-4e27343eec284d9028617171a82a5816420fe4c7.zip
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 &. llvm-svn: 223323
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index de7d96129f1..68889cb2053 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -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++;
OpenPOWER on IntegriCloud