diff options
author | 2016-03-08 15:01:47 +0000 | |
---|---|---|
committer | 2016-03-08 15:01:47 +0000 | |
commit | 817808ea9d06b979c95f37a17bca607d0b42f320 (patch) | |
tree | a7b28e4b74ec6fbfa9d588e05cffe548759034ef /compiler/elf_builder.h | |
parent | 70f2fcaaff5b5fa40e40e850be0682978b42808d (diff) | |
parent | ce51701b0621754a81125df3ed62e07c0497cafd (diff) |
Merge "Propagate InstructionSetFeatures to ElfBuilder."
am: ce51701b06
* commit 'ce51701b0621754a81125df3ed62e07c0497cafd':
Propagate InstructionSetFeatures to ElfBuilder.
Diffstat (limited to 'compiler/elf_builder.h')
-rw-r--r-- | compiler/elf_builder.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/elf_builder.h b/compiler/elf_builder.h index f7da609e5d..943e2a897d 100644 --- a/compiler/elf_builder.h +++ b/compiler/elf_builder.h @@ -20,6 +20,7 @@ #include <vector> #include "arch/instruction_set.h" +#include "arch/mips/instruction_set_features_mips.h" #include "base/bit_utils.h" #include "base/casts.h" #include "base/unix_file/fd_file.h" @@ -392,8 +393,9 @@ class ElfBuilder FINAL { } }; - ElfBuilder(InstructionSet isa, OutputStream* output) + ElfBuilder(InstructionSet isa, const InstructionSetFeatures* features, OutputStream* output) : isa_(isa), + features_(features), stream_(output), rodata_(this, ".rodata", SHT_PROGBITS, SHF_ALLOC, nullptr, 0, kPageSize, 0), text_(this, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR, nullptr, 0, kPageSize, 0), @@ -818,6 +820,7 @@ class ElfBuilder FINAL { } InstructionSet isa_; + const InstructionSetFeatures* features_; ErrorDelayingOutputStream stream_; |