llvm/unittests
Petar Jovanovic fd42335e83 Do not destroy external linkage when deleting function body
The function deleteBody() converts the linkage to external and thus destroys
original linkage type value. Lack of correct linkage type causes wrong
relocations to be emitted later.
Calling dropAllReferences() instead of deleteBody() will fix the issue.

Differential Revision: http://reviews.llvm.org/D5415


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218302 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-23 12:54:19 +00:00
..
ADT Add hsail and amdil64 to Triple 2014-09-19 19:52:11 +00:00
Analysis
Bitcode Do not destroy external linkage when deleting function body 2014-09-23 12:54:19 +00:00
CodeGen
DebugInfo
ExecutionEngine
IR
LineEditor
Linker
MC
Option
Support LineIterator: Provide a variant that keeps blank lines 2014-09-17 15:43:01 +00:00
Transforms
CMakeLists.txt
Makefile
Makefile.unittest