[all-commits] [llvm/llvm-project] 2cc4bc: MCFragment: Initialize Offset to 0
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Jun 12 14:13:43 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2cc4bc132cbcc76c5552cbc128830943ea596b3e
https://github.com/llvm/llvm-project/commit/2cc4bc132cbcc76c5552cbc128830943ea596b3e
Author: Fangrui Song <i at maskray.me>
Date: 2024-06-12 (Wed, 12 Jun 2024)
Changed paths:
M llvm/include/llvm/MC/MCFragment.h
M llvm/lib/MC/MCFragment.cpp
M llvm/lib/MC/MCObjectStreamer.cpp
M llvm/test/MC/ELF/layout-interdependency.s
Log Message:
-----------
MCFragment: Initialize Offset to 0
After 9d0754ada5dbbc0c009bcc2f7824488419cc5530 ("[MC] Relax fragments
eagerly") removes the assert of Offset, it is no longer useful to
initialize the member to -1.
Now the symbol value estimate is more precise, which leads to slight
behavior change to layout-interdependency.s.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list