clang API Documentation
#include <CGDebugInfo.h>
Public Member Functions | |
SaveAndRestoreLocation (CodeGenFunction &CGF, CGBuilderTy &B) | |
~SaveAndRestoreLocation () | |
Autorestore everything back to normal. | |
Protected Attributes | |
SourceLocation | SavedLoc |
CGDebugInfo * | DI |
CGBuilderTy & | Builder |
SaveAndRestoreLocation - An RAII object saves the current location and automatically restores it to the original value.
Definition at line 454 of file CGDebugInfo.h.
Definition at line 55 of file CGDebugInfo.cpp.
References DI, clang::CodeGen::CGDebugInfo::getLocation(), and SavedLoc.
Autorestore everything back to normal.
Definition at line 64 of file CGDebugInfo.cpp.
References Builder, DI, clang::CodeGen::CGDebugInfo::EmitLocation(), and SavedLoc.
Definition at line 458 of file CGDebugInfo.h.
Referenced by clang::CodeGen::ArtificialLocation::ArtificialLocation(), clang::CodeGen::ArtificialLocation::Emit(), clang::CodeGen::NoLocation::NoLocation(), clang::CodeGen::ArtificialLocation::~ArtificialLocation(), clang::CodeGen::NoLocation::~NoLocation(), and ~SaveAndRestoreLocation().
CGDebugInfo* clang::CodeGen::SaveAndRestoreLocation::DI [protected] |
Definition at line 457 of file CGDebugInfo.h.
Referenced by clang::CodeGen::ArtificialLocation::ArtificialLocation(), clang::CodeGen::ArtificialLocation::Emit(), clang::CodeGen::NoLocation::NoLocation(), SaveAndRestoreLocation(), clang::CodeGen::ArtificialLocation::~ArtificialLocation(), clang::CodeGen::NoLocation::~NoLocation(), and ~SaveAndRestoreLocation().
Definition at line 456 of file CGDebugInfo.h.
Referenced by clang::CodeGen::ArtificialLocation::Emit(), SaveAndRestoreLocation(), and ~SaveAndRestoreLocation().