Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
Show First 20 Lines • Show All 2,790 Lines • ▼ Show 20 Lines | public: | ||||
bool isParameter() const { return Arg; } | bool isParameter() const { return Arg; } | ||||
unsigned getArg() const { return Arg; } | unsigned getArg() const { return Arg; } | ||||
DIFlags getFlags() const { return Flags; } | DIFlags getFlags() const { return Flags; } | ||||
bool isArtificial() const { return getFlags() & FlagArtificial; } | bool isArtificial() const { return getFlags() & FlagArtificial; } | ||||
bool isObjectPointer() const { return getFlags() & FlagObjectPointer; } | bool isObjectPointer() const { return getFlags() & FlagObjectPointer; } | ||||
/// Check that an argument is unmodified. | |||||
bool isNotModified() const { return getFlags() & FlagArgumentNotModified; } | |||||
/// Set the flag if an argument is unmodified. | |||||
void setIsNotModified() { Flags |= FlagArgumentNotModified; } | |||||
/// Check that a location is valid for this variable. | /// Check that a location is valid for this variable. | ||||
/// | /// | ||||
/// Check that \c DL exists, is in the same subprogram, and has the same | /// Check that \c DL exists, is in the same subprogram, and has the same | ||||
/// inlined-at location as \c this. (Otherwise, it's not a valid attachment | /// inlined-at location as \c this. (Otherwise, it's not a valid attachment | ||||
/// to a \a DbgInfoIntrinsic.) | /// to a \a DbgInfoIntrinsic.) | ||||
bool isValidLocationForIntrinsic(const DILocation *DL) const { | bool isValidLocationForIntrinsic(const DILocation *DL) const { | ||||
return DL && getScope()->getSubprogram() == DL->getScope()->getSubprogram(); | return DL && getScope()->getSubprogram() == DL->getScope()->getSubprogram(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 432 Lines • Show Last 20 Lines |