summaryrefslogtreecommitdiffstats
path: root/disassembler/disassembler.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-11-19 21:09:12 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-11-19 21:09:15 +0000
commit834896de1c955c04d781d2bf8c53573f94ce8c3e (patch)
tree7152aa7bebe9a82f7b35b3f233aacaf6e3e72ea7 /disassembler/disassembler.h
parent7b5f98e0c17785ec64eb291856cd08dcd3d19ce1 (diff)
parenta37d925d405be9f589ac282869a997e73414d859 (diff)
downloadart-834896de1c955c04d781d2bf8c53573f94ce8c3e.zip
art-834896de1c955c04d781d2bf8c53573f94ce8c3e.tar.gz
art-834896de1c955c04d781d2bf8c53573f94ce8c3e.tar.bz2
Merge "Improvements to the ARM64 disassembler."
Diffstat (limited to 'disassembler/disassembler.h')
-rw-r--r--disassembler/disassembler.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/disassembler/disassembler.h b/disassembler/disassembler.h
index 9cd631c..966ee3a 100644
--- a/disassembler/disassembler.h
+++ b/disassembler/disassembler.h
@@ -34,8 +34,14 @@ class DisassemblerOptions {
// Base addess for calculating relative code offsets when absolute_addresses_ is false.
const uint8_t* const base_address_;
- DisassemblerOptions(bool absolute_addresses, const uint8_t* base_address)
- : absolute_addresses_(absolute_addresses), base_address_(base_address) {}
+ // If set, the disassembler is allowed to look at load targets in literal
+ // pools.
+ const bool can_read_literals_;
+
+ DisassemblerOptions(bool absolute_addresses, const uint8_t* base_address,
+ bool can_read_literals)
+ : absolute_addresses_(absolute_addresses), base_address_(base_address),
+ can_read_literals_(can_read_literals) {}
private:
DISALLOW_COPY_AND_ASSIGN(DisassemblerOptions);