[PATCH] D47615: [DebugInfo] Adding DISubprogram::setFlags identical to DIType::setFlags
Roman Tereshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 31 18:51:28 PDT 2018
rtereshin created this revision.
rtereshin added a reviewer: aprantl.
Herald added subscribers: llvm-commits, JDevlieghere.
for convenience for a downstream optimization pass.
Repository:
rL LLVM
https://reviews.llvm.org/D47615
Files:
include/llvm/IR/DebugInfoMetadata.h
Index: include/llvm/IR/DebugInfoMetadata.h
===================================================================
--- include/llvm/IR/DebugInfoMetadata.h
+++ include/llvm/IR/DebugInfoMetadata.h
@@ -1690,6 +1690,11 @@
bool isDefinition() const { return IsDefinition; }
bool isOptimized() const { return IsOptimized; }
+ void setFlags(DIFlags NewFlags) {
+ assert(!isUniqued() && "Cannot set flags on uniqued nodes");
+ Flags = NewFlags;
+ }
+
bool isArtificial() const { return getFlags() & FlagArtificial; }
bool isPrivate() const {
return (getFlags() & FlagAccessibility) == FlagPrivate;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47615.149390.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180601/3b41c10c/attachment.bin>
More information about the llvm-commits
mailing list