Skip to content

Commit caf691f

Browse files
[memprof] Tidy up #includes (NFC)
We've reorganized some code within memprof, but #indludes haven't quite followed the code that moved.
1 parent 0977a6d commit caf691f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

llvm/include/llvm/ProfileData/IndexedMemProfData.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
#include "llvm/ProfileData/DataAccessProf.h"
1919
#include "llvm/ProfileData/InstrProf.h"
2020
#include "llvm/ProfileData/MemProf.h"
21+
#include "llvm/Support/BLAKE3.h"
2122
#include "llvm/Support/Compiler.h"
22-
23-
#include <functional>
24-
#include <optional>
23+
#include "llvm/Support/HashBuilder.h"
2524

2625
namespace llvm {
2726
namespace memprof {

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@
1414
#ifndef LLVM_PROFILEDATA_MEMPROF_H
1515
#define LLVM_PROFILEDATA_MEMPROF_H
1616

17-
#include "llvm/ADT/BitVector.h"
18-
#include "llvm/ADT/MapVector.h"
17+
#include "llvm/ADT/DenseMap.h"
1918
#include "llvm/ADT/STLForwardCompat.h"
2019
#include "llvm/ADT/STLFunctionalExtras.h"
2120
#include "llvm/ADT/SmallVector.h"
2221
#include "llvm/ADT/StringRef.h"
2322
#include "llvm/IR/GlobalValue.h"
2423
#include "llvm/ProfileData/MemProfData.inc"
25-
#include "llvm/Support/BLAKE3.h"
2624
#include "llvm/Support/Compiler.h"
2725
#include "llvm/Support/Endian.h"
2826
#include "llvm/Support/EndianStream.h"
29-
#include "llvm/Support/HashBuilder.h"
3027
#include "llvm/Support/raw_ostream.h"
3128

3229
#include <bitset>
3330
#include <cstdint>
34-
#include <optional>
3531

3632
namespace llvm {
3733
namespace yaml {

llvm/include/llvm/ProfileData/MemProfRadixTree.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
#ifndef LLVM_PROFILEDATA_MEMPROFRADIXTREE_H
1414
#define LLVM_PROFILEDATA_MEMPROFRADIXTREE_H
1515

16+
#include "llvm/ADT/BitVector.h"
1617
#include "llvm/ProfileData/IndexedMemProfData.h"
1718
#include "llvm/ProfileData/MemProf.h"
1819
#include "llvm/Support/Compiler.h"
1920

21+
#include <optional>
22+
2023
namespace llvm {
2124
namespace memprof {
2225
namespace detail {

0 commit comments

Comments
 (0)