diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-19 04:34:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 04:34:02 +0000 |
| commit | e9d28b19cf3864c0e44e15036dc71e8e4eb31088 (patch) | |
| tree | 57430d35bc32d0a9143f9c43608caf92c1c5c4bf /llvm/include | |
| parent | 58d59fe394e7c773bff27b412d90f5d0523187aa (diff) | |
| download | bcm5719-llvm-e9d28b19cf3864c0e44e15036dc71e8e4eb31088.tar.gz bcm5719-llvm-e9d28b19cf3864c0e44e15036dc71e8e4eb31088.zip | |
move production of .reference directives for static ctor/dtor list on
darwin into common code.
llvm-svn: 93849
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCAsmInfo.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCAsmInfo.h b/llvm/include/llvm/MC/MCAsmInfo.h index 6d01278711f..1368e1f4249 100644 --- a/llvm/include/llvm/MC/MCAsmInfo.h +++ b/llvm/include/llvm/MC/MCAsmInfo.h @@ -36,7 +36,13 @@ namespace llvm { /// HasMachoZeroFillDirective - True if this is a MachO target that supports /// the macho-specific .zerofill directive for emitting BSS Symbols. - bool HasMachoZeroFillDirective; // Default is false. + bool HasMachoZeroFillDirective; // Default is false. + + /// HasStaticCtorDtorReferenceInStaticMode - True if the compiler should + /// emit a ".reference .constructors_used" or ".reference .destructors_used" + /// directive after the a static ctor/dtor list. This directive is only + /// emitted in Static relocation model. + bool HasStaticCtorDtorReferenceInStaticMode; // Default is false. /// NeedsSet - True if target asm treats expressions in data directives /// as linktime-relocatable. For assembly-time computation, we need to @@ -314,7 +320,9 @@ namespace llvm { // Accessors. // bool hasMachoZeroFillDirective() const { return HasMachoZeroFillDirective; } - + bool hasStaticCtorDtorReferenceInStaticMode() const { + return HasStaticCtorDtorReferenceInStaticMode; + } const char *getNonexecutableStackDirective() const { return NonexecutableStackDirective; } |

