Detail: Follow up to D144999, where we emitted DWARF for non-canonical personality.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp | ||
---|---|---|
572 | Move the change into the isDarwinCanonicalPersonality function? |
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp | ||
---|---|---|
572 | well, both of these two predicates are *already* in the function. (it is supposed to tell you if a given symbol is a canonical-darwin personality.)
We only want to return DWARF-MODE here for reason number (3) If we want to reuse a util function, then we ought to name it isNonNullDarwinNonCanonicalPersonality... |
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp | ||
---|---|---|
572 | I'd say the util function should return true for NULL, because NULL is a canonical personality (it's always given index 0, right?) How do you even get a !MachO symbol in here -- all of this is Mach-O-specific, right? Perhaps can just remove that clause? |
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp | ||
---|---|---|
572 | Good point. |
llvm/lib/MC/MCAsmBackend.cpp | ||
---|---|---|
125 ↗ | (On Diff #530035) | Could you please turn the assert into an if-statement? |
llvm/lib/MC/MCAsmBackend.cpp | ||
---|---|---|
125 ↗ | (On Diff #530035) | Can you please clarify the purpose of your request? Refer to previous discussion thread here as to why this was changed, and if you disagree, please explain why. |
llvm/lib/MC/MCAsmBackend.cpp | ||
---|---|---|
125 ↗ | (On Diff #530035) | In release mode, the assert cannot fire. It is useless. It only helps you during development. |
updated patch
llvm/lib/MC/MCAsmBackend.cpp | ||
---|---|---|
125 ↗ | (On Diff #530035) | This assert is mostly a smoke-check for (most likely) impossible scenario - supposed to help in development only. So I'd have thought an assert is appropriate. Besides, there are plenty of other places both in this file and this package that use 'assert'. I'm not sure how those are different from this instance. But anyways, changed to llvm_unreachable. |
Move the change into the isDarwinCanonicalPersonality function?