diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-12-04 00:06:57 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-12-04 00:06:57 +0000 |
| commit | 4e27343eec284d9028617171a82a5816420fe4c7 (patch) | |
| tree | e1f2a4622f68ba63debb758e0c30e372caecc196 /llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp | |
| parent | a7eb3cb46e83a6c275cd212c95497627e157aa98 (diff) | |
| download | bcm5719-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/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp index db7f0ae914e..f7af5dd88d0 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp @@ -134,6 +134,7 @@ void X86MCAsmInfoMicrosoft::anchor() { } X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) { if (Triple.getArch() == Triple::x86_64) { PrivateGlobalPrefix = ".L"; + PrivateLabelPrefix = ".L"; PointerSize = 8; WinEHEncodingType = WinEH::EncodingType::Itanium; ExceptionsType = ExceptionHandling::ItaniumWinEH; @@ -154,6 +155,7 @@ X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) { assert(Triple.isOSWindows() && "Windows is the only supported COFF target"); if (Triple.getArch() == Triple::x86_64) { PrivateGlobalPrefix = ".L"; + PrivateLabelPrefix = ".L"; PointerSize = 8; WinEHEncodingType = WinEH::EncodingType::Itanium; ExceptionsType = ExceptionHandling::ItaniumWinEH; |

