Skip to content

Commit fa7145d

Browse files
author
serge-sans-paille
committed
Add missing includes after LLVMCore header cleanup
- conditionally include header only used for expensive check - have Core.h always include llvm-c/ErrorHandling.h
1 parent 1b12e92 commit fa7145d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

llvm/include/llvm-c/Core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#define LLVM_C_CORE_H
1717

1818
#include "llvm-c/Deprecated.h"
19+
#include "llvm-c/ErrorHandling.h"
1920
#include "llvm-c/ExternC.h"
21+
2022
#include "llvm-c/Types.h"
2123

2224
LLVM_C_EXTERN_C_BEGIN

llvm/lib/IR/LegacyPassManager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
#include "llvm/Support/Timer.h"
2929
#include "llvm/Support/raw_ostream.h"
3030
#include <algorithm>
31+
32+
#ifdef EXPENSIVE_CHECKS
33+
#include "llvm/IR/StructuralHash.h"
34+
#endif
35+
3136
using namespace llvm;
3237

3338
// See PassManagers.h for Pass Manager infrastructure overview.

0 commit comments

Comments
 (0)