diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-05-07 21:35:53 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-05-07 21:35:53 +0000 |
commit | 20d9e41ddb3f531267680819b5cac4cac1c6b231 (patch) | |
tree | 876162a4fa808369b673daf5be737c98476679bd /include/llvm/DIBuilder.h | |
parent | 8cb6b971601d42a27e40f0f1d4828671441989f5 (diff) | |
download | llvm-20d9e41ddb3f531267680819b5cac4cac1c6b231.tar.gz llvm-20d9e41ddb3f531267680819b5cac4cac1c6b231.tar.bz2 llvm-20d9e41ddb3f531267680819b5cac4cac1c6b231.tar.xz |
Rename DIImportedModule to DIImportedEntity and allow imported declarations
DIBuilder::createImportedDeclaration isn't fully plumbed through (note,
lacking in AsmPrinter/DwarfDebug support) but this seemed like a
sufficiently useful division of code to make the subsequent patch(es)
easier to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DIBuilder.h')
-rw-r--r-- | include/llvm/DIBuilder.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index 2c0f712a93..4ce884b736 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -37,7 +37,7 @@ namespace llvm { class DIType; class DIArray; class DIGlobalVariable; - class DIImportedModule; + class DIImportedEntity; class DINameSpace; class DIVariable; class DISubrange; @@ -577,9 +577,18 @@ namespace llvm { /// @param Context The scope this module is imported into /// @param NS The namespace being imported here /// @param Line Line number - DIImportedModule createImportedModule(DIScope Context, DINameSpace NS, + DIImportedEntity createImportedModule(DIScope Context, DINameSpace NS, unsigned Line); + /// \brief Create a descriptor for an imported function. + /// @param Context The scope this module is imported into + /// @param Decl The declaration (or definition) of a function, type, or + /// variable + /// @param Line Line number + DIImportedEntity createImportedDeclaration(DIScope Context, + DIDescriptor Decl, + unsigned Line); + /// insertDeclare - Insert a new llvm.dbg.declare intrinsic call. /// @param Storage llvm::Value of the variable /// @param VarInfo Variable's debug info descriptor. |