clang API Documentation

Public Member Functions | Protected Attributes
clang::CodeGen::SaveAndRestoreLocation Class Reference

#include <CGDebugInfo.h>

Inheritance diagram for clang::CodeGen::SaveAndRestoreLocation:
Inheritance graph
[legend]
Collaboration diagram for clang::CodeGen::SaveAndRestoreLocation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SaveAndRestoreLocation (CodeGenFunction &CGF, CGBuilderTy &B)
 ~SaveAndRestoreLocation ()
 Autorestore everything back to normal.

Protected Attributes

SourceLocation SavedLoc
CGDebugInfoDI
CGBuilderTyBuilder

Detailed Description

SaveAndRestoreLocation - An RAII object saves the current location and automatically restores it to the original value.

Definition at line 454 of file CGDebugInfo.h.


Constructor & Destructor Documentation

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.


Member Data Documentation


The documentation for this class was generated from the following files: