diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-23 05:51:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-23 05:51:36 +0000 |
commit | 3a9be0ee36fe2143f514d28315f3dc1bda132b2e (patch) | |
tree | 1eba2579597f6e068b243e3c3593a004c2f788b3 /include | |
parent | 63df4a4fec6aeff0a62d80d781019ac34d2fd98c (diff) | |
download | llvm-3a9be0ee36fe2143f514d28315f3dc1bda132b2e.tar.gz llvm-3a9be0ee36fe2143f514d28315f3dc1bda132b2e.tar.bz2 llvm-3a9be0ee36fe2143f514d28315f3dc1bda132b2e.tar.xz |
mcstreamerize .no_dead_strip and .reference for static ctors/dtors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 0be27530f2..bebae825e4 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -209,10 +209,9 @@ namespace llvm { /// .file directive, this is true for ELF targets. bool HasSingleParameterDotFile; // Defaults to true. - /// UsedDirective - This directive, if non-null, is used to declare a global - /// as being used somehow that the assembler can't see. This prevents dead - /// code elimination on some targets. - const char *UsedDirective; // Defaults to NULL. + /// HasNoDeadStrip - True if this target supports the MachO .no_dead_strip + /// directive. + bool HasNoDeadStrip; // Defaults to false. /// WeakRefDirective - This directive, if non-null, is used to declare a /// global as being a weak undefined symbol. @@ -410,15 +409,9 @@ namespace llvm { bool getCOMMDirectiveTakesAlignment() const { return COMMDirectiveTakesAlignment; } - bool hasDotTypeDotSizeDirective() const { - return HasDotTypeDotSizeDirective; - } - bool hasSingleParameterDotFile() const { - return HasSingleParameterDotFile; - } - const char *getUsedDirective() const { - return UsedDirective; - } + bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;} + bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; } + bool hasNoDeadStrip() const { return HasNoDeadStrip; } const char *getWeakRefDirective() const { return WeakRefDirective; } const char *getWeakDefDirective() const { return WeakDefDirective; } const char *getLinkOnceDirective() const { return LinkOnceDirective; } |