]> granicus.if.org Git - llvm/commitdiff
[AArch64] Remove unused MC function
authorSam Parker <sam.parker@arm.com>
Mon, 14 Aug 2017 09:16:13 +0000 (09:16 +0000)
committerSam Parker <sam.parker@arm.com>
Mon, 14 Aug 2017 09:16:13 +0000 (09:16 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310823 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp

index fb814b1c6c043c4e7cd03f6bbb5484ac8ce2b344..33698d2b8c38f0d4d8bdc5ca3bfc43c96b47bffc 100644 (file)
@@ -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::getAddSubImmOpValue(const MCInst &MI, unsigned OpIdx,
   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(