Remove FIXMEs. The scope of a Variable is always a lexical scope; there is
authorAdrian Prantl <aprantl@apple.com>
Tue, 1 Apr 2014 03:50:01 +0000 (03:50 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 1 Apr 2014 03:50:01 +0000 (03:50 +0000)
nothing to be gained from switching this over to a DIScopeRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205281 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DebugInfo.h

index 228df49793d1879acbfde8ae42be13da3b991ea1..69beaada9c31e69a449dbf746a518eac80713747 100644 (file)
@@ -612,7 +612,6 @@ 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); }
@@ -646,7 +645,6 @@ 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); }