Lines Matching full:cgf
61 ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF,
63 : CGF(&CGF) {
67 ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF,
70 : CGF(&CGF) {
76 auto *DI = CGF->getDebugInfo();
78 CGF = nullptr;
82 OriginalLocation = CGF->Builder.getCurrentDebugLocation();
84 DI->EmitLocation(CGF->Builder, TemporaryLocation);
89 CGF->Builder.SetCurrentDebugLocation(llvm::DebugLoc());
95 CGF->Builder.SetCurrentDebugLocation(
99 ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF, const Expr *E)
100 : CGF(&CGF) {
104 ApplyDebugLocation::ApplyDebugLocation(CodeGenFunction &CGF, llvm::DebugLoc Loc)
105 : CGF(&CGF) {
106 if (!CGF.getDebugInfo()) {
107 this->CGF = nullptr;
110 OriginalLocation = CGF.Builder.getCurrentDebugLocation();
112 CGF.Builder.SetCurrentDebugLocation(std::move(Loc));
116 // Query CGF so the location isn't overwritten when location updates are
118 if (CGF)
119 CGF->Builder.SetCurrentDebugLocation(std::move(OriginalLocation));