mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
DebugInfo: Move DIFlag accessors from DIVariable to MDLocalVariable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234287 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6ac80b701
commit
550b962059
@ -812,14 +812,8 @@ public:
|
||||
DIFile getFile() const { return DIFile(get()->getFile()); }
|
||||
DITypeRef getType() const { return DITypeRef::get(get()->getType()); }
|
||||
|
||||
/// \brief Return true if this variable is marked as "artificial".
|
||||
bool isArtificial() const {
|
||||
return (getFlags() & FlagArtificial) != 0;
|
||||
}
|
||||
|
||||
bool isObjectPointer() const {
|
||||
return (getFlags() & FlagObjectPointer) != 0;
|
||||
}
|
||||
bool isArtificial() const { return get()->isArtificial(); }
|
||||
bool isObjectPointer() const { return get()->isObjectPointer(); }
|
||||
|
||||
/// \brief If this variable is inlined then return inline location.
|
||||
MDNode *getInlinedAt() const { return DIDescriptor(get()->getInlinedAt()); }
|
||||
|
@ -1769,6 +1769,9 @@ public:
|
||||
|
||||
Metadata *getRawInlinedAt() const { return getOperand(4); }
|
||||
|
||||
bool isArtificial() const { return getFlags() & FlagArtificial; }
|
||||
bool isObjectPointer() const { return getFlags() & FlagObjectPointer; }
|
||||
|
||||
/// \brief Check that a location is valid for this variable.
|
||||
///
|
||||
/// Check that \c DL has the same inlined-at location as this variable,
|
||||
|
Loading…
x
Reference in New Issue
Block a user