Skip to content

Commit a223ec2

Browse files
authored
[CIR][Transforms][NFC] Fix undesirable include of clang's private header (#1157)
With [llvm-project#116090](llvm/llvm-project#116090) merged, we can get rid of `#include "../../../../Basic/Targets.h"` now.
1 parent a04cf10 commit a223ec2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/CIR/Dialect/Transforms/TargetLowering/LowerModule.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
// FIXME(cir): This header file is not exposed to the public API, but can be
15-
// reused by CIR ABI lowering since it holds target-specific information.
16-
#include "../../../../Basic/Targets.h"
1714
#include "clang/Basic/LangOptions.h"
15+
#include "clang/Basic/TargetInfo.h"
1816
#include "clang/Basic/TargetOptions.h"
1917

2018
#include "CIRLowerContext.h"

0 commit comments

Comments
 (0)