Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lldb/include/lldb/Utility/ArchSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ class ArchSpec {
/// \return a boolean value.
bool IsMIPS() const;

/// If NVPTX architecture return true.
///
/// \return a boolean value.
bool IsNVPTX() const;

/// Returns a string representing current architecture as a target CPU for
/// tools like compiler, disassembler etc.
///
Expand Down
2 changes: 2 additions & 0 deletions lldb/source/Utility/ArchSpec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ const char *ArchSpec::GetArchitectureName() const {

bool ArchSpec::IsMIPS() const { return GetTriple().isMIPS(); }

bool ArchSpec::IsNVPTX() const { return GetTriple().isNVPTX(); }

std::string ArchSpec::GetTargetABI() const {

std::string abi;
Expand Down
Loading