File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
1
+ // ===--- CIRGenDebugInfo.h - DebugInfo for CIRGen ---------------*- C++ -*-===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+ //
9
+ // This is the source-level debug info generator for CIR translation.
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+
13
+ #ifndef LLVM_CLANG_LIB_CIR_CODEGEN_CIRGENDEBUGINFO_H
14
+ #define LLVM_CLANG_LIB_CIR_CODEGEN_CIRGENDEBUGINFO_H
15
+
16
+ namespace cir {
17
+ class CIRGenDebugInfo {};
18
+ } // namespace cir
19
+
20
+ #endif // LLVM_CLANG_LIB_CIR_CODEGEN_CIRGENDEBUGINFO_H
Original file line number Diff line number Diff line change 15
15
16
16
#include " CIRGenBuilder.h"
17
17
#include " CIRGenCall.h"
18
+ #include " CIRGenDebugInfo.h"
18
19
#include " CIRGenModule.h"
19
20
#include " CIRGenTBAA.h"
20
21
#include " CIRGenTypeCache.h"
@@ -524,6 +525,8 @@ class CIRGenFunction : public CIRGenTypeCache {
524
525
// / delcs.
525
526
DeclMapTy LocalDeclMap;
526
527
528
+ CIRGenDebugInfo *debugInfo;
529
+
527
530
// / Whether llvm.stacksave has been called. Used to avoid
528
531
// / calling llvm.stacksave for multiple VLAs in the same scope.
529
532
// / TODO: Translate to MLIR
@@ -588,7 +591,7 @@ class CIRGenFunction : public CIRGenTypeCache {
588
591
// TODO: This is currently just a dumb stub. But we want to be able to clearly
589
592
// assert where we arne't doing things that we know we should and will crash
590
593
// as soon as we add a DebugInfo type to this class.
591
- std:: nullptr_t *getDebugInfo () { return nullptr ; }
594
+ CIRGenDebugInfo *getDebugInfo () { return debugInfo ; }
592
595
593
596
void buildReturnOfRValue (mlir::Location loc, RValue RV, QualType Ty);
594
597
You can’t perform that action at this time.
0 commit comments