summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-10 18:40:01 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-10 18:40:01 +0000
commitb8e48a636e7ee6c13140382eb93d9695a65b0624 (patch)
tree9dfcb4342241d83d94b2f4e8cb036108204ce4b7 /include/llvm
parent75a3ad485cb97556145483eb06c88782a7c83697 (diff)
downloadllvm-b8e48a636e7ee6c13140382eb93d9695a65b0624.tar.gz
llvm-b8e48a636e7ee6c13140382eb93d9695a65b0624.tar.bz2
llvm-b8e48a636e7ee6c13140382eb93d9695a65b0624.tar.xz
Debug Info: In DIBuilder, the context field of subprogram is updated to use
DIScopeRef. A paired commit at clang is required due to changes to DIBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/DIBuilder.h14
-rw-r--r--include/llvm/DebugInfo.h2
2 files changed, 15 insertions, 1 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h
index 39ff317a74..44ce3e4213 100644
--- a/include/llvm/DIBuilder.h
+++ b/include/llvm/DIBuilder.h
@@ -562,6 +562,20 @@ namespace llvm {
MDNode *TParam = 0,
MDNode *Decl = 0);
+ /// FIXME: this is added for dragonegg. Once we update dragonegg
+ /// to call resolve function, this will be removed.
+ DISubprogram createFunction(DIScopeRef Scope, StringRef Name,
+ StringRef LinkageName,
+ DIFile File, unsigned LineNo,
+ DICompositeType Ty, bool isLocalToUnit,
+ bool isDefinition,
+ unsigned ScopeLine,
+ unsigned Flags = 0,
+ bool isOptimized = false,
+ Function *Fn = 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.
/// @param Scope Function scope.
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 3f1c1c802d..3e4a960ea7 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -434,7 +434,7 @@ class DISubprogram : public DIScope {
public:
explicit DISubprogram(const MDNode *N = 0) : DIScope(N) {}
- DIScope getContext() const { return getFieldAs<DIScope>(2); }
+ DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(2); }
StringRef getName() const { return getStringField(3); }
StringRef getDisplayName() const { return getStringField(4); }
StringRef getLinkageName() const { return getStringField(5); }