mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-20 09:24:58 +00:00
DebugInfo: Move DIScope::getName() and getContext() to MDScope
Continue gutting the `DIDescriptor` hierarchy. In this case, move the guts of `DIScope::getName()` and `DIScope::getContext()` to `MDScope::getName()` and `MDScope::getScope()`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234691 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -213,15 +213,8 @@ public:
|
||||
return *get();
|
||||
}
|
||||
|
||||
/// \brief Get the parent scope.
|
||||
///
|
||||
/// Gets the parent scope for this scope node or returns a default
|
||||
/// constructed scope.
|
||||
DIScopeRef getContext() const;
|
||||
/// \brief Get the scope name.
|
||||
///
|
||||
/// If the scope node has a name, return that, else return an empty string.
|
||||
StringRef getName() const;
|
||||
inline DIScopeRef getContext() const;
|
||||
StringRef getName() const { return get()->getName(); }
|
||||
StringRef getFilename() const { return get()->getFilename(); }
|
||||
StringRef getDirectory() const { return get()->getDirectory(); }
|
||||
|
||||
@@ -258,6 +251,8 @@ template <>
|
||||
DIScope DIRef<DIScope>::resolve(const DITypeIdentifierMap &Map) const;
|
||||
template <> DIType DIRef<DIType>::resolve(const DITypeIdentifierMap &Map) const;
|
||||
|
||||
DIScopeRef DIScope::getContext() const { return get()->getScope(); }
|
||||
|
||||
/// \brief This is a wrapper for a type.
|
||||
///
|
||||
/// FIXME: Types should be factored much better so that CV qualifiers and
|
||||
|
Reference in New Issue
Block a user