summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-06-01 07:34:26 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-06-01 07:34:26 +0000
commit279306cb0d713eb2fa63943f07a4fe099b5961dc (patch)
treeb437d80dc1615c917fbbf6c52732fbe9ff03e440 /llvm/lib
parent75ede68793e110009018d53b4ddb131470cc3f2b (diff)
downloadbcm5719-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.cpp6
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;
OpenPOWER on IntegriCloud