[llvm] Revert "[MC] set OpenBSD's ELFOSABI by default" (PR #98494)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 08:16:37 PDT 2024
https://github.com/joker-eph created https://github.com/llvm/llvm-project/pull/98494
Reverts llvm/llvm-project#98158
bot is broken.
>From c8547d829c5a738a1fe37ff4ecea5c272cb2eaf0 Mon Sep 17 00:00:00 2001
From: Mehdi Amini <joker.eph at gmail.com>
Date: Thu, 11 Jul 2024 17:16:03 +0200
Subject: [PATCH] Revert "[MC] set OpenBSD's ELFOSABI by default (#98158)"
This reverts commit b64c1de714c50bec7493530446ebf5e540d5f96a.
---
llvm/include/llvm/MC/MCELFObjectWriter.h | 2 --
llvm/test/MC/ELF/osabi.s | 4 ----
2 files changed, 6 deletions(-)
diff --git a/llvm/include/llvm/MC/MCELFObjectWriter.h b/llvm/include/llvm/MC/MCELFObjectWriter.h
index 12237094ad86a..d7c223cdcc07f 100644
--- a/llvm/include/llvm/MC/MCELFObjectWriter.h
+++ b/llvm/include/llvm/MC/MCELFObjectWriter.h
@@ -78,8 +78,6 @@ class MCELFObjectTargetWriter : public MCObjectTargetWriter {
return ELF::ELFOSABI_FREEBSD;
case Triple::Solaris:
return ELF::ELFOSABI_SOLARIS;
- case Triple::OpenBSD:
- return ELF::ELFOSABI_OPENBSD;
default:
return ELF::ELFOSABI_NONE;
}
diff --git a/llvm/test/MC/ELF/osabi.s b/llvm/test/MC/ELF/osabi.s
index 44912f4987c11..dc6ad2a349d75 100644
--- a/llvm/test/MC/ELF/osabi.s
+++ b/llvm/test/MC/ELF/osabi.s
@@ -10,7 +10,3 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s | llvm-readobj -h - | \
# RUN: FileCheck %s --check-prefix=FREEBSD
# FREEBSD: OS/ABI: FreeBSD
-
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-openbsd %s | llvm-readobj -h - | \
-# RUN: FileCheck %s --check-prefix=OPENBSD
-# OPENBSD: OS/ABI: OpenBSD
More information about the llvm-commits
mailing list