summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Config.h')
-rw-r--r--lld/ELF/Config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index 60e2c0941f4..084d58a32a3 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -16,6 +16,7 @@
#include "llvm/Support/CachePruning.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/ELF.h"
+#include "llvm/Support/Endian.h"
#include <vector>
@@ -175,6 +176,9 @@ struct Configuration {
// True if the target is little-endian. False if the target is big-endian.
bool IsLE;
+ // endianness::little if IsLE is true. endianness::big otherwise.
+ llvm::support::endianness Endianness;
+
// True if the target is the little-endian MIPS64.
//
// The reason why we have this variable only for the MIPS is because
OpenPOWER on IntegriCloud