[PATCH] D50226: [DebugInfo] Use DbgVariableIntrinsic as the base class of variables.
Hsiangkai Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 2 23:18:21 PDT 2018
HsiangKai created this revision.
HsiangKai added reviewers: aprantl, probinson, dblaikie.
Herald added subscribers: cfe-commits, JDevlieghere.
After refactoring DbgInfoIntrinsic class hierarchy, we use
DbgVariableIntrinsic as the base class of variable debug info.
In resolveTopLevelMetadata() in CGVTables.cpp, we only care about
dbg.value, so we try to cast the instructions to DbgVariableIntrinsic
before resolving variables.
Repository:
rC Clang
https://reviews.llvm.org/D50226
Files:
lib/CodeGen/CGVTables.cpp
Index: lib/CodeGen/CGVTables.cpp
===================================================================
--- lib/CodeGen/CGVTables.cpp
+++ lib/CodeGen/CGVTables.cpp
@@ -128,7 +128,7 @@
// they are referencing.
for (auto &BB : Fn->getBasicBlockList()) {
for (auto &I : BB) {
- if (auto *DII = dyn_cast<llvm::DbgInfoIntrinsic>(&I)) {
+ if (auto *DII = dyn_cast<llvm::DbgVariableIntrinsic>(&I)) {
auto *DILocal = DII->getVariable();
if (!DILocal->isResolved())
DILocal->resolve();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50226.158924.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180803/6e183057/attachment.bin>
More information about the cfe-commits
mailing list