[llvm] c026135 - Revert "[MC] set OpenBSD's ELFOSABI by default" (#98494)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 08:16:49 PDT 2024
Author: Mehdi Amini
Date: 2024-07-11T17:16:46+02:00
New Revision: c0261351136e4a826be697e5ebb5fa638abe7485
URL: https://github.com/llvm/llvm-project/commit/c0261351136e4a826be697e5ebb5fa638abe7485
DIFF: https://github.com/llvm/llvm-project/commit/c0261351136e4a826be697e5ebb5fa638abe7485.diff
LOG: Revert "[MC] set OpenBSD's ELFOSABI by default" (#98494)
Reverts llvm/llvm-project#98158
bot is broken.
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-commits
mailing list