summaryrefslogtreecommitdiff
path: root/include/llvm/DebugInfo.h
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-09 19:46:28 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-09 19:46:28 +0000
commitb4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61 (patch)
tree1c8e3279acc05997c5cd0ad7e17a94a73a4324eb /include/llvm/DebugInfo.h
parent9360e64e60f600bff98dbff96fabaab536947f86 (diff)
downloadllvm-b4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61.tar.gz
llvm-b4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61.tar.bz2
llvm-b4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61.tar.xz
Debug Info: In DIBuilder, the context and type fields of template_type and
template_value are updated to use DIRef. A paired commit at clang is required due to changes to DIBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DebugInfo.h')
-rw-r--r--include/llvm/DebugInfo.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 49b81e3944..3f1c1c802d 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -539,9 +539,9 @@ class DITemplateTypeParameter : public DIDescriptor {
public:
explicit DITemplateTypeParameter(const MDNode *N = 0) : DIDescriptor(N) {}
- DIScope getContext() const { return getFieldAs<DIScope>(1); }
+ DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(1); }
StringRef getName() const { return getStringField(2); }
- DIType getType() const { return getFieldAs<DIType>(3); }
+ DITypeRef getType() const { return getFieldAs<DITypeRef>(3); }
StringRef getFilename() const { return getFieldAs<DIFile>(4).getFilename(); }
StringRef getDirectory() const {
return getFieldAs<DIFile>(4).getDirectory();
@@ -556,9 +556,9 @@ class DITemplateValueParameter : public DIDescriptor {
public:
explicit DITemplateValueParameter(const MDNode *N = 0) : DIDescriptor(N) {}
- DIScope getContext() const { return getFieldAs<DIScope>(1); }
+ DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(1); }
StringRef getName() const { return getStringField(2); }
- DIType getType() const { return getFieldAs<DIType>(3); }
+ DITypeRef getType() const { return getFieldAs<DITypeRef>(3); }
Value *getValue() const;
StringRef getFilename() const { return getFieldAs<DIFile>(5).getFilename(); }
StringRef getDirectory() const {