summaryrefslogtreecommitdiff
path: root/compiler/elf_builder.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2016-03-08 15:01:47 +0000
committer android-build-merger <android-build-merger@google.com> 2016-03-08 15:01:47 +0000
commit817808ea9d06b979c95f37a17bca607d0b42f320 (patch)
treea7b28e4b74ec6fbfa9d588e05cffe548759034ef /compiler/elf_builder.h
parent70f2fcaaff5b5fa40e40e850be0682978b42808d (diff)
parentce51701b0621754a81125df3ed62e07c0497cafd (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.h5
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_;