Skip to content

Commit 632ba9f

Browse files
committed
[codeview] Prune SimpleTypeSerializer.h headers, NFC
These are left over from when the class was more complicated. Add a header comment banner to the .cpp file, which was missing.
1 parent bce360b commit 632ba9f

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

llvm/include/llvm/DebugInfo/CodeView/SimpleTypeSerializer.h

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,11 @@
1010
#define LLVM_DEBUGINFO_CODEVIEW_SIMPLETYPESERIALIZER_H
1111

1212
#include "llvm/ADT/ArrayRef.h"
13-
#include "llvm/ADT/Optional.h"
14-
#include "llvm/ADT/SmallVector.h"
15-
#include "llvm/DebugInfo/CodeView/CodeView.h"
16-
#include "llvm/DebugInfo/CodeView/RecordSerialization.h"
17-
#include "llvm/DebugInfo/CodeView/TypeIndex.h"
18-
#include "llvm/DebugInfo/CodeView/TypeRecord.h"
19-
#include "llvm/DebugInfo/CodeView/TypeRecordMapping.h"
20-
#include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h"
21-
#include "llvm/Support/Allocator.h"
22-
#include "llvm/Support/BinaryByteStream.h"
23-
#include "llvm/Support/BinaryStreamWriter.h"
24-
#include "llvm/Support/Error.h"
25-
#include <cassert>
26-
#include <cstdint>
27-
#include <memory>
2813
#include <vector>
2914

3015
namespace llvm {
3116
namespace codeview {
17+
class FieldListRecord;
3218

3319
class SimpleTypeSerializer {
3420
std::vector<uint8_t> ScratchBuffer;

llvm/lib/DebugInfo/CodeView/SimpleTypeSerializer.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
//===- SimpleTypeSerializer.cpp -----------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#include "llvm/DebugInfo/CodeView/SimpleTypeSerializer.h"
10+
#include "llvm/DebugInfo/CodeView/TypeRecord.h"
11+
#include "llvm/DebugInfo/CodeView/TypeRecordMapping.h"
12+
#include "llvm/Support/BinaryStreamWriter.h"
213

314
using namespace llvm;
415
using namespace llvm::codeview;

llvm/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h"
1515
#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
1616
#include "llvm/Support/Allocator.h"
17+
#include "llvm/Support/BinaryByteStream.h"
1718
#include "llvm/Support/BinaryItemStream.h"
1819
#include "llvm/Support/Error.h"
1920
#include "llvm/Testing/Support/Error.h"

0 commit comments

Comments
 (0)