[lldb-instr] Don't print REGISTER macro when RECORD is already present
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Feb 2019 23:13:29 +0000 (23:13 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Feb 2019 23:13:29 +0000 (23:13 +0000)
commitee04d4d840374028e8f791738c652ea353a39d45
treebcc201e4e6c86e34a01a73316e71c6dcf5b92b69
parent92756a80e7ae7b0ce682d84e8576e885e7e4ccb1
[lldb-instr] Don't print REGISTER macro when RECORD is already present

Currently we'd always print the LLDB_REGISTER macro, even if the
LLDB_RECORD macro was already present. This patches changes that to make
it easier to incrementally update the macros.

Note that it's still possible for the RECORD and REGISTER macros to get
out of sync.

llvm-svn: 354400
lldb/lit/tools/lldb-instr/TestInstrumentationRegister.test
lldb/tools/lldb-instr/Instrument.cpp