This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Silence warnings about unused static variables in RegisterInfos_arm64.h
ClosedPublic

Authored by mstorsjo on Apr 6 2022, 4:57 AM.

Details

Summary

Move them to the only source file that included RegisterInfos_arm64.h
that actually used these variables.

This silences warnings like these:

In file included from lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp:42:
lldb/source/Plugins/Process/Utility/RegisterInfos_arm64.h:790:35: warning: ‘g_register_infos_mte’ defined but not used [-Wunused-variable]
  790 | static lldb_private::RegisterInfo g_register_infos_mte[] = {
      |                                   ^~~~~~~~~~~~~~~~~~~~
lldb/source/Plugins/Process/Utility/RegisterInfos_arm64.h:787:35: warning: ‘g_register_infos_pauth’ defined but not used [-Wunused-variable]
  787 | static lldb_private::RegisterInfo g_register_infos_pauth[] = {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~

Diff Detail

Event Timeline

mstorsjo created this revision.Apr 6 2022, 4:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 4:57 AM
mstorsjo requested review of this revision.Apr 6 2022, 4:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 4:57 AM
labath accepted this revision.Apr 11 2022, 5:08 AM
This revision is now accepted and ready to land.Apr 11 2022, 5:08 AM