aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetAsmInfo.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-09-09 01:21:22 +0000
committerDale Johannesen <dalej@apple.com>2008-09-09 01:21:22 +0000
commit2d34f9f9db93f596ea731c546d833ab5d6bb5735 (patch)
tree38fb163f96e48210e7ebb62a66ef0c6c9b48e23d /include/llvm/Target/TargetAsmInfo.h
parent181f4e4c081baf26dc872ece93b0152e6af68f0b (diff)
downloadexternal_llvm-2d34f9f9db93f596ea731c546d833ab5d6bb5735.zip
external_llvm-2d34f9f9db93f596ea731c546d833ab5d6bb5735.tar.gz
external_llvm-2d34f9f9db93f596ea731c546d833ab5d6bb5735.tar.bz2
Fix logic for not emitting no-dead-strip for some
objects in llvm.used (thanks Anton). Makes visible the magic 'l' prefix for symbols on Darwin which are to be passed through the assembler, then removed at linktime (previously all references to this had been hidden in the ObjC FE code, oh well). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index ff2491e..bbb5852 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -216,10 +216,15 @@ namespace llvm {
const char *GlobalPrefix; // Defaults to ""
/// PrivateGlobalPrefix - This prefix is used for globals like constant
- /// pool entries that are completely private to the .o file and should not
+ /// pool entries that are completely private to the .s file and should not
/// have names in the .o file. This is often "." or "L".
const char *PrivateGlobalPrefix; // Defaults to "."
+ /// LessPrivateGlobalPrefix - This prefix is used for some Objective C
+ /// metadata symbols that should be passed through the assembler but be
+ /// removed by the linker. This is "l" on Darwin.
+ const char *LessPrivateGlobalPrefix; // Defaults to ""
+
/// JumpTableSpecialLabelPrefix - If not null, a extra (dead) label is
/// emitted before jump tables with the specified prefix.
const char *JumpTableSpecialLabelPrefix; // Default to null.
@@ -653,6 +658,9 @@ namespace llvm {
const char *getPrivateGlobalPrefix() const {
return PrivateGlobalPrefix;
}
+ const char *getLessPrivateGlobalPrefix() const {
+ return LessPrivateGlobalPrefix;
+ }
const char *getJumpTableSpecialLabelPrefix() const {
return JumpTableSpecialLabelPrefix;
}