llvm-mirror/include/llvm-c
Duncan Sands 5ab54d488f Introduce new linkage types linkonce_odr, weak_odr, common_odr
and extern_weak_odr.  These are the same as the non-odr versions,
except that they indicate that the global will only be overridden
by an *equivalent* global.  In C, a function with weak linkage can
be overridden by a function which behaves completely differently.
This means that IP passes have to skip weak functions, since any
deductions made from the function definition might be wrong, since
the definition could be replaced by something completely different
at link time.   This is not allowed in C++, thanks to the ODR
(One-Definition-Rule): if a function is replaced by another at
link-time, then the new function must be the same as the original
function.  If a language knows that a function or other global can
only be overridden by an equivalent global, it can give it the
weak_odr linkage type, and the optimizers will understand that it
is alright to make deductions based on the function body.  The
code generators on the other hand map weak and weak_odr linkage
to the same thing.

llvm-svn: 66339
2009-03-07 15:45:40 +00:00
..
Transforms fix header comment and include guard. 2009-03-06 16:54:19 +00:00
Analysis.h Expose Function::viewCFG and Function::viewCFGOnly to bindings. 2008-03-31 16:22:09 +00:00
BitReader.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
BitWriter.h Improve documentation. 2008-05-06 19:17:01 +00:00
Core.h Introduce new linkage types linkonce_odr, weak_odr, common_odr 2009-03-07 15:45:40 +00:00
ExecutionEngine.h add getPointerToGlobal to the C bindings, patch by Lennart Augustsson! 2009-01-21 18:11:10 +00:00
LinkTimeOptimizer.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
lto.h Correct strange whitespace. 2009-02-06 07:01:00 +00:00
Target.h Rename getABITypeSize to getTypePaddedSize, as 2009-01-12 20:38:59 +00:00