Displaying 1 result from an estimated 1 matches for "l4591".
Did you mean:
4591
2016 Oct 07
2
Is extern_weak a legal linkage for function definitions?
Hi,
The LLVM language reference doesn't say that extern_weak is illegal for
function definitions, but it seems this restriction is enforced in the
code in some places:
https://github.com/llvm-mirror/llvm/blob/master/lib/AsmParser/LLParser.cpp#L4591
https://github.com/llvm-mirror/llvm/blob/master/lib/CodeGen/AsmPrinter/AsmPrinter.cpp#L327
However it is possible to create a bitcode file where a function
definition has extern_weak linkage. Are these restrictions in
the code wrong, or do we just need to update the language reference?
-Tom