diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-06-01 07:34:26 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-06-01 07:34:26 +0000 |
commit | 279306cb0d713eb2fa63943f07a4fe099b5961dc (patch) | |
tree | b437d80dc1615c917fbbf6c52732fbe9ff03e440 /llvm/lib | |
parent | 75ede68793e110009018d53b4ddb131470cc3f2b (diff) | |
download | bcm5719-llvm-279306cb0d713eb2fa63943f07a4fe099b5961dc.tar.gz bcm5719-llvm-279306cb0d713eb2fa63943f07a4fe099b5961dc.zip |
[WinCOFF] Ignore .safeseh for non-x86 architectures
We don't want to bother with creating .sxdata sections on Win64; all the
relevant information is already in the .pdata section.
llvm-svn: 238730
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/MC/WinCOFFStreamer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/MC/WinCOFFStreamer.cpp b/llvm/lib/MC/WinCOFFStreamer.cpp index abbe4164958..f007b5ee7c8 100644 --- a/llvm/lib/MC/WinCOFFStreamer.cpp +++ b/llvm/lib/MC/WinCOFFStreamer.cpp @@ -159,6 +159,12 @@ void MCWinCOFFStreamer::EndCOFFSymbolDef() { } void MCWinCOFFStreamer::EmitCOFFSafeSEH(MCSymbol const *Symbol) { + // SafeSEH is a feature specific to 32-bit x86. It does not exist (and is + // unnecessary) on all platforms which use table-based exception dispatch. + if (getContext().getObjectFileInfo()->getTargetTriple().getArch() != + Triple::x86) + return; + if (Symbol->getFlags() & COFF::SF_SafeSEH) return; |