[llvm] r310823 - [AArch64] Remove unused MC function

Sam Parker via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 02:16:14 PDT 2017


Author: sam_parker
Date: Mon Aug 14 02:16:13 2017
New Revision: 310823

URL: http://llvm.org/viewvc/llvm-project?rev=310823&view=rev
Log:
[AArch64] Remove unused MC function

An unused function warning was raised in
https://bugs.llvm.org/show_bug.cgi?id=34178.

The offending function, in AArch64MCCodeEmitter.cpp, was committed by
me last week.

Differential Revision: https://reviews.llvm.org/D36665

Modified:
    llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp

Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp?rev=310823&r1=310822&r2=310823&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp Mon Aug 14 02:16:13 2017
@@ -84,12 +84,6 @@ public:
                                SmallVectorImpl<MCFixup> &Fixups,
                                const MCSubtargetInfo &STI) const;
 
-  /// getAuthSImmOpValue - Return encoding for a 10-bit immediate which is
-  /// encoded as a sign bit and an 9-bit immediate, separated by a single bit.
-  uint32_t getAuthSImmOpValue(const MCInst &MI, unsigned OpIdx,
-                              SmallVectorImpl<MCFixup> &Fixups,
-                              const MCSubtargetInfo &STI) const;
-
   /// getCondBranchTargetOpValue - Return the encoded value for a conditional
   /// branch target.
   uint32_t getCondBranchTargetOpValue(const MCInst &MI, unsigned OpIdx,
@@ -288,18 +282,6 @@ AArch64MCCodeEmitter::getAddSubImmOpValu
   return ShiftVal == 0 ? 0 : (1 << ShiftVal);
 }
 
-/// getAuthSImmOpValue - encode a 10-bit scale signed immediate within an 11-bit
-/// field in which bit 10 of that field is not used to encode any information
-/// about the immediate.
-uint32_t
-AArch64MCCodeEmitter::getAuthSImmOpValue(const MCInst &MI, unsigned OpIdx,
-                                         SmallVectorImpl<MCFixup> &Fixups,
-                                         const MCSubtargetInfo &STI) const {
-  const MCOperand &MO = MI.getOperand(OpIdx);
-  int32_t offset = MO.getImm();
-  return (uint32_t)offset;
-}
-
 /// getCondBranchTargetOpValue - Return the encoded value for a conditional
 /// branch target.
 uint32_t AArch64MCCodeEmitter::getCondBranchTargetOpValue(




More information about the llvm-commits mailing list