[PDB] Switch from LLVM_PACKED to LLVM_PACKED_START/END
authorReid Kleckner <rnk@google.com>
Wed, 13 May 2020 21:24:11 +0000 (14:24 -0700)
committerReid Kleckner <rnk@google.com>
Wed, 13 May 2020 21:24:11 +0000 (14:24 -0700)
Reportedly using the pragma instead of the __attribute__ silences
warnings with some GCC versions.

llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp

index dc06a80..998ba15 100644 (file)
@@ -90,12 +90,14 @@ void GSIHashStreamBuilder::addSymbol(const codeview::CVSymbol &Symbol) {
 }
 
 namespace {
-LLVM_PACKED(struct PublicSym32Layout {
+LLVM_PACKED_START
+struct PublicSym32Layout {
   RecordPrefix Prefix;
   PublicSym32Header Pub;
   // char Name[];
-});
-}
+};
+LLVM_PACKED_END
+} // namespace
 
 // Calculate how much memory this public needs when serialized.
 static uint32_t sizeOfPublic(const BulkPublic &Pub) {