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 /lib/MC | |
parent | 63df4a4fec6aeff0a62d80d781019ac34d2fd98c (diff) |
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 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmInfo.cpp | 2 | ||||
-rw-r--r-- | lib/MC/MCAsmInfoDarwin.cpp | 2 | ||||
-rw-r--r-- | lib/MC/MCMachOStreamer.cpp | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index cc03614157..ef6dd071e0 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -57,7 +57,7 @@ MCAsmInfo::MCAsmInfo() { COMMDirectiveTakesAlignment = true; HasDotTypeDotSizeDirective = true; HasSingleParameterDotFile = true; - UsedDirective = 0; + HasNoDeadStrip = false; WeakRefDirective = 0; WeakDefDirective = 0; LinkOnceDirective = 0; diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp index 664a55c088..a66a83d014 100644 --- a/lib/MC/MCAsmInfoDarwin.cpp +++ b/lib/MC/MCAsmInfoDarwin.cpp @@ -39,7 +39,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() { SetDirective = "\t.set"; ProtectedDirective = "\t.globl\t"; HasDotTypeDotSizeDirective = false; - UsedDirective = "\t.no_dead_strip\t"; + HasNoDeadStrip = true; // Note: Even though darwin has the .lcomm directive, it is just a synonym for // zerofill, so we prefer to use .zerofill. diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index ffdd421f4e..4ed8ec3521 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -234,6 +234,7 @@ void MCMachOStreamer::EmitSymbolAttribute(MCSymbol *Symbol, case MCStreamer::Internal: case MCStreamer::Protected: case MCStreamer::Weak: + case MCStreamer::Local: assert(0 && "Invalid symbol attribute for Mach-O!"); break; |