Skip to content

Commit 950c615

Browse files
committed
move ApplyAtomGroup into CodeGenFunction.h (CGDebugInfo.h no longer included)
1 parent 89d7847 commit 950c615

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

clang/lib/CodeGen/CGDebugInfo.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -892,20 +892,6 @@ class CGDebugInfo {
892892
}
893893
};
894894

895-
/// A scoped helper to set the current source atom group for
896-
/// CGDebugInfo::addInstToCurrentSourceAtom. A source atom is a source construct
897-
/// that is "interesting" for debug stepping purposes. We use an atom group
898-
/// number to track the instruction(s) that implement the functionality for the
899-
/// atom, plus backup instructions/source locations.
900-
class ApplyAtomGroup {
901-
uint64_t OriginalAtom = 0;
902-
CGDebugInfo *DI = nullptr;
903-
904-
public:
905-
ApplyAtomGroup(CGDebugInfo *DI);
906-
~ApplyAtomGroup();
907-
};
908-
909895
/// A scoped helper to set the current debug location to the specified
910896
/// location or preferred location of the specified Expr.
911897
class ApplyDebugLocation {

clang/lib/CodeGen/CodeGenFunction.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,20 @@ template <> struct DominatingValue<RValue> {
258258
}
259259
};
260260

261+
/// A scoped helper to set the current source atom group for
262+
/// CGDebugInfo::addInstToCurrentSourceAtom. A source atom is a source construct
263+
/// that is "interesting" for debug stepping purposes. We use an atom group
264+
/// number to track the instruction(s) that implement the functionality for the
265+
/// atom, plus backup instructions/source locations.
266+
class ApplyAtomGroup {
267+
uint64_t OriginalAtom = 0;
268+
CGDebugInfo *DI = nullptr;
269+
270+
public:
271+
ApplyAtomGroup(CGDebugInfo *DI);
272+
~ApplyAtomGroup();
273+
};
274+
261275
/// CodeGenFunction - This class organizes the per-function state that is used
262276
/// while generating LLVM code.
263277
class CodeGenFunction : public CodeGenTypeCache {

0 commit comments

Comments
 (0)