diff options
author | Roman Tereshin <rtereshin@apple.com> | 2018-06-01 23:15:09 +0000 |
---|---|---|
committer | Roman Tereshin <rtereshin@apple.com> | 2018-06-01 23:15:09 +0000 |
commit | cf88ffaaf919726e9188c029e8b2a8aab1106684 (patch) | |
tree | e87c36c25c49ee470871bb643c0560de14c7dbbd /llvm/include/llvm-c/DebugInfo.h | |
parent | 4b3701a7a7a9c28f2a7fff23392cc8c3cda4ebd0 (diff) | |
download | bcm5719-llvm-cf88ffaaf919726e9188c029e8b2a8aab1106684.tar.gz bcm5719-llvm-cf88ffaaf919726e9188c029e8b2a8aab1106684.zip |
[DebugInfo] Refactoring DIType::setFlags to DIType::cloneWithFlags, NFC
and using the latter in DIBuilder::createArtificialType and
DIBuilder::createObjectPointerType methods as well as introducing
mirroring DISubprogram::cloneWithFlags and
DIBuilder::createArtificialSubprogram methods.
The primary goal here is to add createArtificialSubprogram to support
a pass downstream while keeping the method consistent with the
existing ones and making sure we don't encourage changing already
created DI-nodes.
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D47615
llvm-svn: 333806
Diffstat (limited to 'llvm/include/llvm-c/DebugInfo.h')
-rw-r--r-- | llvm/include/llvm-c/DebugInfo.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm-c/DebugInfo.h b/llvm/include/llvm-c/DebugInfo.h index edb78f3f69d..dc1578f4862 100644 --- a/llvm/include/llvm-c/DebugInfo.h +++ b/llvm/include/llvm-c/DebugInfo.h @@ -678,8 +678,7 @@ LLVMDIBuilderCreateObjCProperty(LLVMDIBuilderRef Builder, LLVMMetadataRef Ty); /** - * Create a new DIType* with the "object pointer" - * flag set. + * Create a uniqued DIType* clone with FlagObjectPointer and FlagArtificial set. * \param Builder The DIBuilder. * \param Type The underlying type to which this pointer points. */ @@ -851,7 +850,7 @@ LLVMMetadataRef LLVMDIBuilderCreateClassType(LLVMDIBuilderRef Builder, const char *UniqueIdentifier, size_t UniqueIdentifierLen); /** - * Create a new DIType* with "artificial" flag set. + * Create a uniqued DIType* clone with FlagArtificial set. * \param Builder The DIBuilder. * \param Type The underlying type. */ |