[lld] [lld] select a default eflags for hexagon (PR #108431)

Brian Cain via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 12:15:53 PDT 2024


================
@@ -60,17 +60,17 @@ Hexagon::Hexagon() {
 }
 
 uint32_t Hexagon::calcEFlags() const {
-  assert(!ctx.objectFiles.empty());
+  static uint32_t DEFAULT_ARCH_REV = 0x60;
----------------
androm3da wrote:

It's intentionally the smallest scope necessary.  But yeah should be `const` - will fix that.

https://github.com/llvm/llvm-project/pull/108431


More information about the llvm-commits mailing list