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()); }
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,