summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-02-03 18:40:38 +0000
committerAdrian Prantl <aprantl@apple.com>2015-02-03 18:40:38 +0000
commit6693d0839af5ae38d7a09bfada7af7a24611d884 (patch)
treead35b14b068bd00078f4ffbbbe19b9e32bb7b9dd /clang/lib/CodeGen/CGDebugInfo.h
parent9cea2c1035197c801ef3bff43a6e08a16007600b (diff)
downloadbcm5719-llvm-6693d0839af5ae38d7a09bfada7af7a24611d884.tar.gz
bcm5719-llvm-6693d0839af5ae38d7a09bfada7af7a24611d884.zip
Add documentation to ApplyDebugLocation.
llvm-svn: 228002
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index e16dbc37f96..e3d672465cf 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -443,8 +443,8 @@ private:
}
};
-/// A scoped helper to set the current debug location to the specified location
-/// or preferred location of the specified Expr.
+/// \brief A scoped helper to set the current debug location to the specified
+/// location or preferred location of the specified Expr.
class ApplyDebugLocation {
private:
void init(SourceLocation TemporaryLocation);
@@ -454,6 +454,8 @@ protected:
CodeGenFunction &CGF;
public:
+ /// If TemporaryLocation is invalid, the IRBuilder will be set to not attach
+ /// debug locations, thus marking the instructions as prologue.
ApplyDebugLocation(CodeGenFunction &CGF,
SourceLocation TemporaryLocation = SourceLocation());
ApplyDebugLocation(CodeGenFunction &CGF, const Expr *E);
OpenPOWER on IntegriCloud