tools/import-trace: add --do-not-split option to RegisterImporter
The RegisterImporter splits each register into 1 byte chunks. The --do-not-split flag prohibits this splitting. Be aware, that def/use pruning won't work correctly in mixed-width cases (EAX/AX/AH/AL). Change-Id: Ifa1930bdd9f317a6fd3ae50c4ff3cffc97504640
This commit is contained in:
@ -17,11 +17,12 @@ class RegisterImporter : public Importer {
|
||||
const fail::LLVMtoFailTranslator::reginfo_t &info,
|
||||
char access_type);
|
||||
|
||||
fail::CommandLine::option_handle NO_GP, FLAGS, IP;
|
||||
bool do_gp, do_flags, do_ip;
|
||||
fail::CommandLine::option_handle NO_GP, FLAGS, IP, NO_SPLIT;
|
||||
bool do_gp, do_flags, do_ip, do_split_registers;
|
||||
|
||||
public:
|
||||
RegisterImporter() : Importer(), do_gp(true), do_flags(false), do_ip(false) {}
|
||||
RegisterImporter() : Importer(), do_gp(true), do_flags(false), do_ip(false),
|
||||
do_split_registers(true) {}
|
||||
/**
|
||||
* Callback function that can be used to add command line options
|
||||
* to the cmd interface
|
||||
|
||||
Reference in New Issue
Block a user