[llvm] 4975c3a - MachineFunction: Remove unused field

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 17:36:38 PDT 2022


Author: Matt Arsenault
Date: 2022-04-14T20:21:18-04:00
New Revision: 4975c3a9494c37997774bf9254ff79a85c5e5c7f

URL: https://github.com/llvm/llvm-project/commit/4975c3a9494c37997774bf9254ff79a85c5e5c7f
DIFF: https://github.com/llvm/llvm-project/commit/4975c3a9494c37997774bf9254ff79a85c5e5c7f.diff

LOG: MachineFunction: Remove unused field

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/MachineFunction.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index c4767a51b0944..b2aefa87f8742 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -277,12 +277,6 @@ class LLVM_EXTERNAL_VISIBILITY MachineFunction {
   // numbered and this vector keeps track of the mapping from ID's to MBB's.
   std::vector<MachineBasicBlock*> MBBNumbering;
 
-  // Unary encoding of basic block symbols is used to reduce size of ".strtab".
-  // Basic block number 'i' gets a prefix of length 'i'.  The ith character also
-  // denotes the type of basic block number 'i'.  Return blocks are marked with
-  // 'r', landing pads with 'l' and regular blocks with 'a'.
-  std::vector<char> BBSectionsSymbolPrefix;
-
   // Pool-allocate MachineFunction-lifetime and IR objects.
   BumpPtrAllocator Allocator;
 
@@ -1220,10 +1214,6 @@ class LLVM_EXTERNAL_VISIBILITY MachineFunction {
   void copyCallSiteInfo(const MachineInstr *Old,
                         const MachineInstr *New);
 
-  const std::vector<char> &getBBSectionsSymbolPrefix() const {
-    return BBSectionsSymbolPrefix;
-  }
-
   /// Move the call site info from \p Old to \New call site info. This function
   /// is used when we are replacing one call instruction with another one to
   /// the same callee.


        


More information about the llvm-commits mailing list