summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-22 23:10:17 +0000
committerDevang Patel <dpatel@apple.com>2011-04-22 23:10:17 +0000
commit5e06bb83f4d7b1b86659ad851324350afb04f5b0 (patch)
tree41c0164075b3405f91d73dc1ff72a2ee207d352d /include
parent3728b4ad8bfb42171cc04bb01bc95302fa66810b (diff)
downloadllvm-5e06bb83f4d7b1b86659ad851324350afb04f5b0.tar.gz
llvm-5e06bb83f4d7b1b86659ad851324350afb04f5b0.tar.bz2
llvm-5e06bb83f4d7b1b86659ad851324350afb04f5b0.tar.xz
Let front-end tie subprogram declaration with subprogram definition directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DIBuilder.h3
-rw-r--r--include/llvm/Analysis/DebugInfo.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DIBuilder.h b/include/llvm/Analysis/DIBuilder.h
index a6fcb538b6..9c7d6ffa46 100644
--- a/include/llvm/Analysis/DIBuilder.h
+++ b/include/llvm/Analysis/DIBuilder.h
@@ -401,7 +401,8 @@ namespace llvm {
unsigned Flags = 0,
bool isOptimized = false,
Function *Fn = 0,
- MDNode *TParam = 0);
+ MDNode *TParam = 0,
+ MDNode *Decl = 0);
/// createMethod - Create a new descriptor for the specified C++ method.
/// See comments in DISubprogram for descriptions of these fields.
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index af20ab20ce..a5252aaab5 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -538,6 +538,9 @@ namespace llvm {
Function *getFunction() const { return getFunctionField(16); }
DIArray getTemplateParams() const { return getFieldAs<DIArray>(17); }
+ DISubprogram getFunctionDeclaration() const {
+ return getFieldAs<DISubprogram>(18);
+ }
};
/// DIGlobalVariable - This is a wrapper for a global variable.