DebugInfo: Factor out RETURN_FROM_RAW, etc.

Remove the helper macros `RETURN_FROM_RAW()`,
`RETURN_DESCRIPTOR_FROM_RAW()`, and `RETURN_REF_FROM_RAW()`, since they
don't do anything too special anymore.  This loses an `assert(get())`,
but I'm hoping any crashes were shaken out when r232844 landed a few
weeks ago.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233660 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-03-31 01:47:37 +00:00
parent c2baee4da6
commit 12b14d9a76

View File

@ -269,25 +269,6 @@ public:
void replaceAllUsesWith(MDNode *D); void replaceAllUsesWith(MDNode *D);
}; };
#define RETURN_FROM_RAW(VALID, UNUSED) \
do { \
auto *N = get(); \
assert(N && "Expected non-null in accessor"); \
return VALID; \
} while (false)
#define RETURN_DESCRIPTOR_FROM_RAW(DESC, VALID) \
do { \
auto *N = get(); \
assert(N && "Expected non-null in accessor"); \
return DESC(dyn_cast_or_null<MDNode>(VALID)); \
} while (false)
#define RETURN_REF_FROM_RAW(REF, VALID) \
do { \
auto *N = get(); \
assert(N && "Expected non-null in accessor"); \
return REF::get(VALID); \
} while (false)
/// \brief This is used to represent ranges, for array bounds. /// \brief This is used to represent ranges, for array bounds.
class DISubrange : public DIDescriptor { class DISubrange : public DIDescriptor {
public: public:
@ -304,8 +285,8 @@ public:
return *get(); return *get();
} }
int64_t getLo() const { RETURN_FROM_RAW(N->getLo(), 0); } int64_t getLo() const { return get()->getLo(); }
int64_t getCount() const { RETURN_FROM_RAW(N->getCount(), 0); } int64_t getCount() const { return get()->getCount(); }
bool Verify() const; bool Verify() const;
}; };
@ -340,8 +321,8 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
int64_t getEnumValue() const { RETURN_FROM_RAW(N->getValue(), 0); } int64_t getEnumValue() const { return get()->getValue(); }
bool Verify() const; bool Verify() const;
}; };
@ -484,17 +465,15 @@ public:
bool Verify() const; bool Verify() const;
DIScopeRef getContext() const { DIScopeRef getContext() const { return DIScopeRef::get(get()->getScope()); }
RETURN_REF_FROM_RAW(DIScopeRef, N->getScope()); StringRef getName() const { return get()->getName(); }
} unsigned getLineNumber() const { return get()->getLine(); }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } uint64_t getSizeInBits() const { return get()->getSizeInBits(); }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } uint64_t getAlignInBits() const { return get()->getAlignInBits(); }
uint64_t getSizeInBits() const { RETURN_FROM_RAW(N->getSizeInBits(), 0); }
uint64_t getAlignInBits() const { RETURN_FROM_RAW(N->getAlignInBits(), 0); }
// FIXME: Offset is only used for DW_TAG_member nodes. Making every type // FIXME: Offset is only used for DW_TAG_member nodes. Making every type
// carry this is just plain insane. // carry this is just plain insane.
uint64_t getOffsetInBits() const { RETURN_FROM_RAW(N->getOffsetInBits(), 0); } uint64_t getOffsetInBits() const { return get()->getOffsetInBits(); }
unsigned getFlags() const { RETURN_FROM_RAW(N->getFlags(), 0); } unsigned getFlags() const { return get()->getFlags(); }
bool isPrivate() const { bool isPrivate() const {
return (getFlags() & FlagAccessibility) == FlagPrivate; return (getFlags() & FlagAccessibility) == FlagPrivate;
} }
@ -544,7 +523,7 @@ public:
return *get(); return *get();
} }
unsigned getEncoding() const { RETURN_FROM_RAW(N->getEncoding(), 0); } unsigned getEncoding() const { return get()->getEncoding(); }
bool Verify() const; bool Verify() const;
}; };
@ -569,7 +548,7 @@ public:
} }
DITypeRef getTypeDerivedFrom() const { DITypeRef getTypeDerivedFrom() const {
RETURN_REF_FROM_RAW(DITypeRef, N->getBaseType()); return DITypeRef::get(get()->getBaseType());
} }
/// \brief Return property node, if this ivar is associated with one. /// \brief Return property node, if this ivar is associated with one.
@ -629,7 +608,7 @@ public:
DIArray getElements() const { DIArray getElements() const {
assert(!isSubroutineType() && "no elements for DISubroutineType"); assert(!isSubroutineType() && "no elements for DISubroutineType");
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getElements()); return DIArray(get()->getElements());
} }
private: private:
@ -643,9 +622,9 @@ private:
} }
public: public:
unsigned getRunTimeLang() const { RETURN_FROM_RAW(N->getRuntimeLang(), 0); } unsigned getRunTimeLang() const { return get()->getRuntimeLang(); }
DITypeRef getContainingType() const { DITypeRef getContainingType() const {
RETURN_REF_FROM_RAW(DITypeRef, N->getVTableHolder()); return DITypeRef::get(get()->getVTableHolder());
} }
private: private:
@ -654,11 +633,9 @@ private:
public: public:
DIArray getTemplateParams() const { DIArray getTemplateParams() const {
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getTemplateParams()); return DIArray(get()->getTemplateParams());
}
MDString *getIdentifier() const {
RETURN_FROM_RAW(N->getRawIdentifier(), nullptr);
} }
MDString *getIdentifier() const { return get()->getRawIdentifier(); }
bool Verify() const; bool Verify() const;
}; };
@ -679,7 +656,7 @@ public:
} }
DITypedArray<DITypeRef> getTypeArray() const { DITypedArray<DITypeRef> getTypeArray() const {
RETURN_DESCRIPTOR_FROM_RAW(DITypedArray<DITypeRef>, N->getTypeArray()); return DITypedArray<DITypeRef>(get()->getTypeArray());
} }
}; };
@ -719,39 +696,32 @@ public:
} }
dwarf::SourceLanguage getLanguage() const { dwarf::SourceLanguage getLanguage() const {
RETURN_FROM_RAW(static_cast<dwarf::SourceLanguage>(N->getSourceLanguage()), return static_cast<dwarf::SourceLanguage>(get()->getSourceLanguage());
static_cast<dwarf::SourceLanguage>(0));
}
StringRef getProducer() const { RETURN_FROM_RAW(N->getProducer(), ""); }
bool isOptimized() const { RETURN_FROM_RAW(N->isOptimized(), false); }
StringRef getFlags() const { RETURN_FROM_RAW(N->getFlags(), ""); }
unsigned getRunTimeVersion() const {
RETURN_FROM_RAW(N->getRuntimeVersion(), 0);
} }
StringRef getProducer() const { return get()->getProducer(); }
bool isOptimized() const { return get()->isOptimized(); }
StringRef getFlags() const { return get()->getFlags(); }
unsigned getRunTimeVersion() const { return get()->getRuntimeVersion(); }
DIArray getEnumTypes() const { DIArray getEnumTypes() const { return DIArray(get()->getEnumTypes()); }
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getEnumTypes());
}
DIArray getRetainedTypes() const { DIArray getRetainedTypes() const {
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getRetainedTypes()); return DIArray(get()->getRetainedTypes());
}
DIArray getSubprograms() const {
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getSubprograms());
} }
DIArray getSubprograms() const { return DIArray(get()->getSubprograms()); }
DIArray getGlobalVariables() const { DIArray getGlobalVariables() const {
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getGlobalVariables()); return DIArray(get()->getGlobalVariables());
} }
DIArray getImportedEntities() const { DIArray getImportedEntities() const {
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getImportedEntities()); return DIArray(get()->getImportedEntities());
} }
void replaceSubprograms(DIArray Subprograms); void replaceSubprograms(DIArray Subprograms);
void replaceGlobalVariables(DIArray GlobalVariables); void replaceGlobalVariables(DIArray GlobalVariables);
StringRef getSplitDebugFilename() const { StringRef getSplitDebugFilename() const {
RETURN_FROM_RAW(N->getSplitDebugFilename(), ""); return get()->getSplitDebugFilename();
} }
unsigned getEmissionKind() const { RETURN_FROM_RAW(N->getEmissionKind(), 0); } unsigned getEmissionKind() const { return get()->getEmissionKind(); }
bool Verify() const; bool Verify() const;
}; };
@ -772,34 +742,32 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
StringRef getDisplayName() const { RETURN_FROM_RAW(N->getDisplayName(), ""); } StringRef getDisplayName() const { return get()->getDisplayName(); }
StringRef getLinkageName() const { RETURN_FROM_RAW(N->getLinkageName(), ""); } StringRef getLinkageName() const { return get()->getLinkageName(); }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
/// \brief Check if this is local (like 'static' in C). /// \brief Check if this is local (like 'static' in C).
unsigned isLocalToUnit() const { RETURN_FROM_RAW(N->isLocalToUnit(), 0); } unsigned isLocalToUnit() const { return get()->isLocalToUnit(); }
unsigned isDefinition() const { RETURN_FROM_RAW(N->isDefinition(), 0); } unsigned isDefinition() const { return get()->isDefinition(); }
unsigned getVirtuality() const { RETURN_FROM_RAW(N->getVirtuality(), 0); } unsigned getVirtuality() const { return get()->getVirtuality(); }
unsigned getVirtualIndex() const { RETURN_FROM_RAW(N->getVirtualIndex(), 0); } unsigned getVirtualIndex() const { return get()->getVirtualIndex(); }
unsigned getFlags() const { RETURN_FROM_RAW(N->getFlags(), 0); } unsigned getFlags() const { return get()->getFlags(); }
unsigned isOptimized() const { RETURN_FROM_RAW(N->isOptimized(), 0); } unsigned isOptimized() const { return get()->isOptimized(); }
/// \brief Get the beginning of the scope of the function (not the name). /// \brief Get the beginning of the scope of the function (not the name).
unsigned getScopeLineNumber() const { RETURN_FROM_RAW(N->getScopeLine(), 0); } unsigned getScopeLineNumber() const { return get()->getScopeLine(); }
DIScopeRef getContext() const { DIScopeRef getContext() const { return DIScopeRef::get(get()->getScope()); }
RETURN_REF_FROM_RAW(DIScopeRef, N->getScope());
}
DISubroutineType getType() const { DISubroutineType getType() const {
RETURN_DESCRIPTOR_FROM_RAW(DISubroutineType, N->getType()); return DISubroutineType(get()->getType());
} }
DITypeRef getContainingType() const { DITypeRef getContainingType() const {
RETURN_REF_FROM_RAW(DITypeRef, N->getContainingType()); return DITypeRef::get(get()->getContainingType());
} }
bool Verify() const; bool Verify() const;
@ -814,15 +782,13 @@ public:
N->replaceFunction(F); N->replaceFunction(F);
} }
DIArray getTemplateParams() const { DIArray getTemplateParams() const {
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getTemplateParams()); return DIArray(get()->getTemplateParams());
} }
DISubprogram getFunctionDeclaration() const { DISubprogram getFunctionDeclaration() const {
RETURN_DESCRIPTOR_FROM_RAW(DISubprogram, N->getDeclaration()); return DISubprogram(get()->getDeclaration());
} }
MDNode *getVariablesNodes() const { return getVariables(); } MDNode *getVariablesNodes() const { return getVariables(); }
DIArray getVariables() const { DIArray getVariables() const { return DIArray(get()->getVariables()); }
RETURN_DESCRIPTOR_FROM_RAW(DIArray, N->getVariables());
}
unsigned isArtificial() const { return (getFlags() & FlagArtificial) != 0; } unsigned isArtificial() const { return (getFlags() & FlagArtificial) != 0; }
/// \brief Check for the "private" access specifier. /// \brief Check for the "private" access specifier.
@ -875,9 +841,7 @@ public:
return *get(); return *get();
} }
DIScope getContext() const { DIScope getContext() const { return DIScope(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DIScope, N->getScope());
}
unsigned getLineNumber() const { unsigned getLineNumber() const {
if (auto *N = dyn_cast<MDLexicalBlock>(get())) if (auto *N = dyn_cast<MDLexicalBlock>(get()))
return N->getLine(); return N->getLine();
@ -910,12 +874,8 @@ public:
DIScope getContext() const { return getScope(); } DIScope getContext() const { return getScope(); }
unsigned getLineNumber() const { return getScope().getLineNumber(); } unsigned getLineNumber() const { return getScope().getLineNumber(); }
unsigned getColumnNumber() const { return getScope().getColumnNumber(); } unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
DILexicalBlock getScope() const { DILexicalBlock getScope() const { return DILexicalBlock(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DILexicalBlock, N->getScope()); unsigned getDiscriminator() const { return get()->getDiscriminator(); }
}
unsigned getDiscriminator() const {
RETURN_FROM_RAW(N->getDiscriminator(), 0);
}
bool Verify() const; bool Verify() const;
}; };
@ -935,11 +895,9 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
DIScope getContext() const { DIScope getContext() const { return DIScope(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DIScope, N->getScope());
}
bool Verify() const; bool Verify() const;
}; };
@ -960,9 +918,9 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
DITypeRef getType() const { RETURN_REF_FROM_RAW(DITypeRef, N->getType()); } DITypeRef getType() const { return DITypeRef::get(get()->getType()); }
bool Verify() const; bool Verify() const;
}; };
@ -984,15 +942,15 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
DITypeRef getType() const { RETURN_REF_FROM_RAW(DITypeRef, N->getType()); } DITypeRef getType() const { return DITypeRef::get(get()->getType()); }
Metadata *getValue() const { RETURN_FROM_RAW(N->getValue(), nullptr); } Metadata *getValue() const { return get()->getValue(); }
bool Verify() const; bool Verify() const;
}; };
/// \brief This is a wrapper for a global variable. /// \brief This is a wrapper for a global variable.
class DIGlobalVariable : public DIDescriptor { class DIGlobalVariable : public DIDescriptor {
DIFile getFile() const { RETURN_DESCRIPTOR_FROM_RAW(DIFile, N->getFile()); } DIFile getFile() const { return DIFile(get()->getFile()); }
public: public:
explicit DIGlobalVariable(const MDNode *N = nullptr) : DIDescriptor(N) {} explicit DIGlobalVariable(const MDNode *N = nullptr) : DIDescriptor(N) {}
@ -1008,19 +966,17 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
StringRef getDisplayName() const { RETURN_FROM_RAW(N->getDisplayName(), ""); } StringRef getDisplayName() const { return get()->getDisplayName(); }
StringRef getLinkageName() const { RETURN_FROM_RAW(N->getLinkageName(), ""); } StringRef getLinkageName() const { return get()->getLinkageName(); }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
unsigned isLocalToUnit() const { RETURN_FROM_RAW(N->isLocalToUnit(), 0); } unsigned isLocalToUnit() const { return get()->isLocalToUnit(); }
unsigned isDefinition() const { RETURN_FROM_RAW(N->isDefinition(), 0); } unsigned isDefinition() const { return get()->isDefinition(); }
DIScope getContext() const { DIScope getContext() const { return DIScope(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DIScope, N->getScope());
}
StringRef getFilename() const { return getFile().getFilename(); } StringRef getFilename() const { return getFile().getFilename(); }
StringRef getDirectory() const { return getFile().getDirectory(); } StringRef getDirectory() const { return getFile().getDirectory(); }
DITypeRef getType() const { RETURN_REF_FROM_RAW(DITypeRef, N->getType()); } DITypeRef getType() const { return DITypeRef::get(get()->getType()); }
GlobalVariable *getGlobal() const; GlobalVariable *getGlobal() const;
Constant *getConstant() const { Constant *getConstant() const {
@ -1030,8 +986,7 @@ public:
return nullptr; return nullptr;
} }
DIDerivedType getStaticDataMemberDeclaration() const { DIDerivedType getStaticDataMemberDeclaration() const {
RETURN_DESCRIPTOR_FROM_RAW(DIDerivedType, return DIDerivedType(get()->getStaticDataMemberDeclaration());
N->getStaticDataMemberDeclaration());
} }
bool Verify() const; bool Verify() const;
@ -1039,7 +994,7 @@ public:
/// \brief This is a wrapper for a variable (e.g. parameter, local, global etc). /// \brief This is a wrapper for a variable (e.g. parameter, local, global etc).
class DIVariable : public DIDescriptor { class DIVariable : public DIDescriptor {
unsigned getFlags() const { RETURN_FROM_RAW(N->getFlags(), 0); } unsigned getFlags() const { return get()->getFlags(); }
public: public:
explicit DIVariable(const MDNode *N = nullptr) : DIDescriptor(N) {} explicit DIVariable(const MDNode *N = nullptr) : DIDescriptor(N) {}
@ -1055,15 +1010,13 @@ public:
return *get(); return *get();
} }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
unsigned getArgNumber() const { RETURN_FROM_RAW(N->getArg(), 0); } unsigned getArgNumber() const { return get()->getArg(); }
DIScope getContext() const { DIScope getContext() const { return DIScope(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DIScope, N->getScope()); DIFile getFile() const { return DIFile(get()->getFile()); }
} DITypeRef getType() const { return DITypeRef::get(get()->getType()); }
DIFile getFile() const { RETURN_DESCRIPTOR_FROM_RAW(DIFile, N->getFile()); }
DITypeRef getType() const { RETURN_REF_FROM_RAW(DITypeRef, N->getType()); }
/// \brief Return true if this variable is marked as "artificial". /// \brief Return true if this variable is marked as "artificial".
bool isArtificial() const { bool isArtificial() const {
@ -1075,9 +1028,7 @@ public:
} }
/// \brief If this variable is inlined then return inline location. /// \brief If this variable is inlined then return inline location.
MDNode *getInlinedAt() const { MDNode *getInlinedAt() const { return DIDescriptor(get()->getInlinedAt()); }
RETURN_DESCRIPTOR_FROM_RAW(DIDescriptor, N->getInlinedAt());
}
bool Verify() const; bool Verify() const;
@ -1212,13 +1163,11 @@ public:
return *get(); return *get();
} }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
unsigned getColumnNumber() const { RETURN_FROM_RAW(N->getColumn(), 0); } unsigned getColumnNumber() const { return get()->getColumn(); }
DIScope getScope() const { DIScope getScope() const { return DIScope(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DIScope, N->getScope());
}
DILocation getOrigLocation() const { DILocation getOrigLocation() const {
RETURN_DESCRIPTOR_FROM_RAW(DILocation, N->getInlinedAt()); return DILocation(get()->getInlinedAt());
} }
StringRef getFilename() const { return getScope().getFilename(); } StringRef getFilename() const { return getScope().getFilename(); }
StringRef getDirectory() const { return getScope().getDirectory(); } StringRef getDirectory() const { return getScope().getDirectory(); }
@ -1268,17 +1217,13 @@ public:
return *get(); return *get();
} }
StringRef getObjCPropertyName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getObjCPropertyName() const { return get()->getName(); }
DIFile getFile() const { RETURN_DESCRIPTOR_FROM_RAW(DIFile, N->getFile()); } DIFile getFile() const { return DIFile(get()->getFile()); }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
StringRef getObjCPropertyGetterName() const { StringRef getObjCPropertyGetterName() const { return get()->getGetterName(); }
RETURN_FROM_RAW(N->getGetterName(), ""); StringRef getObjCPropertySetterName() const { return get()->getSetterName(); }
} unsigned getAttributes() const { return get()->getAttributes(); }
StringRef getObjCPropertySetterName() const {
RETURN_FROM_RAW(N->getSetterName(), "");
}
unsigned getAttributes() const { RETURN_FROM_RAW(N->getAttributes(), 0); }
bool isReadOnlyObjCProperty() const { bool isReadOnlyObjCProperty() const {
return (getAttributes() & dwarf::DW_APPLE_PROPERTY_readonly) != 0; return (getAttributes() & dwarf::DW_APPLE_PROPERTY_readonly) != 0;
} }
@ -1302,7 +1247,7 @@ public:
/// ///
/// \note Objective-C doesn't have an ODR, so there is no benefit in storing /// \note Objective-C doesn't have an ODR, so there is no benefit in storing
/// the type as a DITypeRef here. /// the type as a DITypeRef here.
DIType getType() const { RETURN_DESCRIPTOR_FROM_RAW(DIType, N->getType()); } DIType getType() const { return DIType(get()->getType()); }
bool Verify() const; bool Verify() const;
}; };
@ -1324,21 +1269,15 @@ public:
return *get(); return *get();
} }
DIScope getContext() const { DIScope getContext() const { return DIScope(get()->getScope()); }
RETURN_DESCRIPTOR_FROM_RAW(DIScope, N->getScope());
}
DIDescriptorRef getEntity() const { DIDescriptorRef getEntity() const {
RETURN_REF_FROM_RAW(DIDescriptorRef, N->getEntity()); return DIDescriptorRef::get(get()->getEntity());
} }
unsigned getLineNumber() const { RETURN_FROM_RAW(N->getLine(), 0); } unsigned getLineNumber() const { return get()->getLine(); }
StringRef getName() const { RETURN_FROM_RAW(N->getName(), ""); } StringRef getName() const { return get()->getName(); }
bool Verify() const; bool Verify() const;
}; };
#undef RETURN_FROM_RAW
#undef RETURN_DESCRIPTOR_FROM_RAW
#undef RETURN_REF_FROM_RAW
/// \brief Find subprogram that is enclosing this scope. /// \brief Find subprogram that is enclosing this scope.
DISubprogram getDISubprogram(const MDNode *Scope); DISubprogram getDISubprogram(const MDNode *Scope);