Skip to content

Commit bcf7bfc

Browse files
committed
remove llvm-wrapper include to silence deprecation warning
Includes of `include/llvm/Support/Host.h` now emit a deprecated warning: `warning: This header is deprecated, please use llvm/TargetParser/Host.h`.
1 parent 8e7fd55 commit bcf7bfc

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

compiler/rustc_llvm/llvm-wrapper/LLVMWrapper.h

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "llvm/Support/DynamicLibrary.h"
1616
#include "llvm/Support/FormattedStream.h"
1717
#include "llvm/Support/JSON.h"
18-
#include "llvm/Support/Host.h"
1918
#include "llvm/Support/Memory.h"
2019
#include "llvm/Support/SourceMgr.h"
2120
#include "llvm/Support/TargetSelect.h"

compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#if LLVM_VERSION_GE(17, 0)
2626
#include "llvm/Support/VirtualFileSystem.h"
2727
#endif
28-
#include "llvm/Support/Host.h"
2928
#include "llvm/Target/TargetMachine.h"
3029
#include "llvm/Transforms/IPO/AlwaysInliner.h"
3130
#include "llvm/Transforms/IPO/FunctionImport.h"

0 commit comments

Comments
 (0)