summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-05-16 00:41:29 +0000
committerAdrian Prantl <aprantl@apple.com>2013-05-16 00:41:29 +0000
commit5e5ff6e170faddd31ff3e08f6d7e8ad45a2db46e (patch)
tree2699502a427191613283eb76f1031822ab449f02 /clang/lib/CodeGen/CGDebugInfo.h
parentdc237b52bc916c5156dcdadf143e73d97a5c0ccf (diff)
downloadbcm5719-llvm-5e5ff6e170faddd31ff3e08f6d7e8ad45a2db46e.tar.gz
bcm5719-llvm-5e5ff6e170faddd31ff3e08f6d7e8ad45a2db46e.zip
Set the debug location for landing pad code to the canonical EH location.
It used to point to the first call that caused the landing pad to be generated. rdar://problem/13888152 llvm-svn: 181958
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index 4080492a1c6..bad13b96ad2 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -206,6 +206,9 @@ public:
/// invalid it is ignored.
void setLocation(SourceLocation Loc);
+ /// getLocation - Return the current source location.
+ SourceLocation getLocation() const { return CurLoc; }
+
/// EmitLocation - Emit metadata to indicate a change in line/column
/// information in the source file.
/// \param ForceColumnInfo Assume DebugColumnInfo option is true.
OpenPOWER on IntegriCloud