https://llvm.org/bugs/show_bug.cgi?id=31123
Bug ID: 31123
Summary: [LTO] Reject modules without a datalayout
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
In r287699, I changed lld to not emit an error when a bitcode file passed as
input doesn't contain a datalayout.
I previously added this check because we didn't set a default datalayout in lld
and that caused the linker to crash.
Now, lld switched to `lib/LTO` and we always call setDataLayout on the
LTOModule.
Mehdi (and Chandler) pointed out it would be a good thing(TM) to warn (or
error?) on modules without a datalayout. I agree, and I think the right place
to implement this (at least initially is lib/LTO).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs