summaryrefslogtreecommitdiff
path: root/include/llvm/DIBuilder.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-27 00:07:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-27 00:07:26 +0000
commit342d92c7a0adeabc9ab00f3f0d88d739fe7da4c7 (patch)
tree20efeadb9cd6b7049beff91505093017668123ee /include/llvm/DIBuilder.h
parentb7e11e400dabced046e7ec53a66926716563bb36 (diff)
downloadllvm-342d92c7a0adeabc9ab00f3f0d88d739fe7da4c7.tar.gz
llvm-342d92c7a0adeabc9ab00f3f0d88d739fe7da4c7.tar.bz2
llvm-342d92c7a0adeabc9ab00f3f0d88d739fe7da4c7.tar.xz
Adding DIImportedModules to DIScopes.
This is just the basic groundwork for supporting DW_TAG_imported_module but I wanted to commit this before pushing support further into Clang or LLVM so that this rather churny change is isolated from the rest of the work. The major churn here is obviously adding another field (within the common DIScope prefix) to all DIScopes (files, classes, namespaces, lexical scopes, etc). This should be the last big churny change needed for DW_TAG_imported_module/using directive support/PR14606. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DIBuilder.h')
-rw-r--r--include/llvm/DIBuilder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h
index 4f0aa07130..a7a8c53e2f 100644
--- a/include/llvm/DIBuilder.h
+++ b/include/llvm/DIBuilder.h
@@ -46,6 +46,7 @@ namespace llvm {
class DITemplateTypeParameter;
class DITemplateValueParameter;
class DIObjCProperty;
+ class DIImportedModule;
class DIBuilder {
private:
@@ -566,6 +567,11 @@ namespace llvm {
DILexicalBlock createLexicalBlock(DIDescriptor Scope, DIFile File,
unsigned Line, unsigned Col);
+
+ /// \brief Create a descriptor for an imported module.
+ /// @param NS The namespace being imported here
+ DIImportedModule createImportedModule(DINameSpace NS);
+
/// insertDeclare - Insert a new llvm.dbg.declare intrinsic call.
/// @param Storage llvm::Value of the variable
/// @param VarInfo Variable's debug info descriptor.