summaryrefslogtreecommitdiff
path: root/include/llvm/IR
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/IR')
-rw-r--r--include/llvm/IR/DebugInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h
index d640e8e3fb..f4d70ad337 100644
--- a/include/llvm/IR/DebugInfo.h
+++ b/include/llvm/IR/DebugInfo.h
@@ -605,6 +605,7 @@ class DIGlobalVariable : public DIDescriptor {
public:
explicit DIGlobalVariable(const MDNode *N = 0) : DIDescriptor(N) {}
+ // FIXME: use DIScopeRef for LTO type uniqueing.
DIScope getContext() const { return getFieldAs<DIScope>(2); }
StringRef getName() const { return getStringField(3); }
StringRef getDisplayName() const { return getStringField(4); }
@@ -638,6 +639,7 @@ class DIVariable : public DIDescriptor {
public:
explicit DIVariable(const MDNode *N = 0) : DIDescriptor(N) {}
+ // FIXME: use DIScopeRef for LTO type uniqueing.
DIScope getContext() const { return getFieldAs<DIScope>(1); }
StringRef getName() const { return getStringField(2); }
DIFile getFile() const { return getFieldAs<DIFile>(3); }