Skip to content

Commit 9b8b82e

Browse files
smeenailanza
authored andcommitted
[CIR] Merge two copies of CIRGenAction.h (#1085)
We have both clang/include/clang/CIRFrontendAction/CIRGenAction.h and clang/include/clang/cir/FrontendAction/CIRGenAction.h, which is a historical artifact. The latter is what's being upstreamed, so merge the former into it to avoid any confusion.
1 parent ab347cb commit 9b8b82e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

clang/include/clang/CIRFrontendAction/CIRGenAction.h renamed to clang/include/clang/CIR/FrontendAction/CIRGenAction.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ class EmitObjAction : public CIRGenAction {
129129
EmitObjAction(mlir::MLIRContext *mlirCtx = nullptr);
130130
};
131131

132-
// Used for -fclangir-analysis-only: use CIR analysis but still use original LLVM codegen path
132+
// Used for -fclangir-analysis-only: use CIR analysis but still use original
133+
// LLVM codegen path
133134
class AnalysisOnlyActionBase : public clang::CodeGenAction {
134135
virtual void anchor();
135136

clang/lib/CIR/FrontendAction/CIRGenAction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "clang/CIRFrontendAction/CIRGenAction.h"
9+
#include "clang/CIR/FrontendAction/CIRGenAction.h"
1010
#include "mlir/Dialect/Func/IR/FuncOps.h"
1111
#include "mlir/Dialect/MemRef/IR/MemRef.h"
1212
#include "mlir/IR/BuiltinOps.h"

clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "mlir/IR/MLIRContext.h"
3737
#include "mlir/Pass/PassManager.h"
3838
#include "clang/CIR/Dialect/Passes.h"
39-
#include "clang/CIRFrontendAction/CIRGenAction.h"
39+
#include "clang/CIR/FrontendAction/CIRGenAction.h"
4040
#endif
4141

4242
using namespace clang;

0 commit comments

Comments
 (0)