[llvm] r348318 - Remove the hash code from CVRecord.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 15:56:08 PST 2018


Author: zturner
Date: Tue Dec  4 15:56:07 2018
New Revision: 348318

URL: http://llvm.org/viewvc/llvm-project?rev=348318&view=rev
Log:
Remove the hash code from CVRecord.

This is no longer used and is just taking up space in the structure.
Heap allocation of this structure is on the critical path, so space
actually matters.

Modified:
    llvm/trunk/include/llvm/DebugInfo/CodeView/CVRecord.h

Modified: llvm/trunk/include/llvm/DebugInfo/CodeView/CVRecord.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/CodeView/CVRecord.h?rev=348318&r1=348317&r2=348318&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/CodeView/CVRecord.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/CodeView/CVRecord.h Tue Dec  4 15:56:07 2018
@@ -45,13 +45,8 @@ public:
     return RecordData.drop_front(sizeof(RecordPrefix));
   }
 
-  Optional<uint32_t> hash() const { return Hash; }
-
-  void setHash(uint32_t Value) { Hash = Value; }
-
   Kind Type;
   ArrayRef<uint8_t> RecordData;
-  Optional<uint32_t> Hash;
 };
 
 template <typename Kind> struct RemappedRecord {




More information about the llvm-commits mailing list