Show only relevant options in asm view.

This commit is contained in:
Bartosz Taudul 2020-06-04 19:59:13 +02:00
parent 3fbc2c8036
commit 71d789063e

View File

@ -1599,12 +1599,15 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
SmallCheckbox( ICON_FA_SHARE " Jumps", &m_showJumps ); SmallCheckbox( ICON_FA_SHARE " Jumps", &m_showJumps );
if( m_cpuArch == CpuArchX64 || m_cpuArch == CpuArchX86 )
{
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
if( SmallCheckbox( "AT&T", &m_atnt ) ) Disassemble( m_baseAddr, worker ); if( SmallCheckbox( "AT&T", &m_atnt ) ) Disassemble( m_baseAddr, worker );
if( m_cpuArch == CpuArchX64 || m_cpuArch == CpuArchX86 ) if( !m_atnt )
{ {
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
@ -1638,6 +1641,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
ImGui::SameLine(); ImGui::SameLine();
SmallCheckbox( ICON_FA_TRUCK_LOADING " Latency", &m_showLatency ); SmallCheckbox( ICON_FA_TRUCK_LOADING " Latency", &m_showLatency );
} }
}
#ifndef TRACY_NO_FILESELECTOR #ifndef TRACY_NO_FILESELECTOR
ImGui::SameLine(); ImGui::SameLine();