aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-09-10 12:37:34 +0300
committerMartin Storsjö <martin@martin.st>2020-09-11 10:31:04 +0300
commit46416f08031f6fcaccd9f51430f7a71c5f510495 (patch)
treed0b2e48b2e81405617c3fbda71701c97dab087f8 /llvm/lib/CodeGen/AsmPrinter/WinException.cpp
parente38be7091ee3d00430652aaa7b66ba3fc8394916 (diff)
downloadllvm-46416f08031f6fcaccd9f51430f7a71c5f510495.zip
llvm-46416f08031f6fcaccd9f51430f7a71c5f510495.tar.gz
llvm-46416f08031f6fcaccd9f51430f7a71c5f510495.tar.bz2
[CodeGen] [WinException] Remove a redundant explicit section switch for aarch64
The following EmitWinEHHandlerData() implicitly switches to .xdata, just like on x86_64. This became orphaned from the original code requiring it in 0b61d220c9b1f0 / https://reviews.llvm.org/D61095. Differential Revision: https://reviews.llvm.org/D87447
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinException.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
index cd8077e..c47ac7e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
@@ -258,15 +258,6 @@ void WinException::endFuncletImpl() {
if (F.hasPersonalityFn())
Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts());
- // On funclet exit, we emit a fake "function" end marker, so that the call
- // to EmitWinEHHandlerData below can calculate the size of the funclet or
- // function.
- if (isAArch64) {
- MCSection *XData = Asm->OutStreamer->getAssociatedXDataSection(
- Asm->OutStreamer->getCurrentSectionOnly());
- Asm->OutStreamer->SwitchSection(XData);
- }
-
// Emit an UNWIND_INFO struct describing the prologue.
Asm->OutStreamer->EmitWinEHHandlerData();