[ELF] Make ExprValue smaller. NFC'
GitOrigin-RevId: e40e17fcaf7ae28f16d4ece716f336b276ab8dce
diff --git a/ELF/LinkerScript.h b/ELF/LinkerScript.h
index 7faa49a..a94212e 100644
--- a/ELF/LinkerScript.h
+++ b/ELF/LinkerScript.h
@@ -41,7 +41,7 @@
struct ExprValue {
ExprValue(SectionBase *sec, bool forceAbsolute, uint64_t val,
const Twine &loc)
- : sec(sec), forceAbsolute(forceAbsolute), val(val), loc(loc.str()) {}
+ : sec(sec), val(val), forceAbsolute(forceAbsolute), loc(loc.str()) {}
ExprValue(uint64_t val) : ExprValue(nullptr, false, val, "") {}
@@ -53,10 +53,6 @@
// If a value is relative to a section, it has a non-null Sec.
SectionBase *sec;
- // True if this expression is enclosed in ABSOLUTE().
- // This flag affects the return value of getValue().
- bool forceAbsolute;
-
uint64_t val;
uint64_t alignment = 1;
@@ -64,6 +60,10 @@
// resets type to STT_NOTYPE.
uint8_t type = llvm::ELF::STT_NOTYPE;
+ // True if this expression is enclosed in ABSOLUTE().
+ // This flag affects the return value of getValue().
+ bool forceAbsolute;
+
// Original source location. Used for error messages.
std::string loc;
};