[llvm-branch-commits] [llvm] c8547d8 - Revert "[MC] set OpenBSD's ELFOSABI by default (#98158)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 11 08:16:06 PDT 2024
Author: Mehdi Amini
Date: 2024-07-11T17:16:03+02:00
New Revision: c8547d829c5a738a1fe37ff4ecea5c272cb2eaf0
URL: https://github.com/llvm/llvm-project/commit/c8547d829c5a738a1fe37ff4ecea5c272cb2eaf0
DIFF: https://github.com/llvm/llvm-project/commit/c8547d829c5a738a1fe37ff4ecea5c272cb2eaf0.diff
LOG: Revert "[MC] set OpenBSD's ELFOSABI by default (#98158)"
This reverts commit b64c1de714c50bec7493530446ebf5e540d5f96a.
Added:
Modified:
llvm/include/llvm/MC/MCELFObjectWriter.h
llvm/test/MC/ELF/osabi.s
Removed:
################################################################################
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-branch-commits
mailing list