[llvm] 86b4076 - [NFC] Remove unuseful infrastructure
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 01:15:36 PDT 2020
Author: Shengchen Kan
Date: 2020-03-31T16:14:08+08:00
New Revision: 86b40760278e73710564135be8cd9c2c9e7ff080
URL: https://github.com/llvm/llvm-project/commit/86b40760278e73710564135be8cd9c2c9e7ff080
DIFF: https://github.com/llvm/llvm-project/commit/86b40760278e73710564135be8cd9c2c9e7ff080.diff
LOG: [NFC] Remove unuseful infrastructure
Added:
Modified:
llvm/include/llvm/MC/MCObjectStreamer.h
llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/MC/MCObjectStreamer.h b/llvm/include/llvm/MC/MCObjectStreamer.h
index b0a3bd31a3cb..362b6e923e5d 100644
--- a/llvm/include/llvm/MC/MCObjectStreamer.h
+++ b/llvm/include/llvm/MC/MCObjectStreamer.h
@@ -87,11 +87,6 @@ class MCObjectStreamer : public MCStreamer {
/// if the Subtarget
diff ers from the current fragment.
MCDataFragment *getOrCreateDataFragment(const MCSubtargetInfo* STI = nullptr);
- /// Get a boundary-align fragment to write into, creating a new one if the
- /// current fragment is not a boundary-align fragment or has been used to emit
- /// something.
- MCBoundaryAlignFragment *getOrCreateBoundaryAlignFragment();
-
protected:
bool changeSectionImpl(MCSection *Section, const MCExpr *Subsection);
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h b/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
index 3e4a5130cc10..f8e893d589ef 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
@@ -346,33 +346,6 @@ namespace X86 {
llvm_unreachable("unknown fusion type");
}
- /// \returns true if the instruction with given opcode is a prefix.
- inline bool isPrefix(unsigned Opcode) {
- switch (Opcode) {
- default:
- return false;
- // segment override prefix
- case X86::CS_PREFIX:
- case X86::DS_PREFIX:
- case X86::ES_PREFIX:
- case X86::FS_PREFIX:
- case X86::GS_PREFIX:
- case X86::SS_PREFIX:
- // operand-size override prefix
- case X86::DATA16_PREFIX:
- // lock and repeat prefix
- case X86::LOCK_PREFIX:
- case X86::REPNE_PREFIX:
- case X86::REP_PREFIX:
- // rex64 prefix
- case X86::REX64_PREFIX:
- // acquire and release prefix
- case X86::XACQUIRE_PREFIX:
- case X86::XRELEASE_PREFIX:
- return true;
- }
- }
-
/// Defines the possible values of the branch boundary alignment mask.
enum AlignBranchBoundaryKind : uint8_t {
AlignBranchNone = 0,
More information about the llvm-commits
mailing list