LLVM backend for 6502
Go to file
Derek Schuff c06e5cf2e3 Fix DeleteDeadVarargs not to crash on functions referenced by BlockAddresses
This pass was assuming that if hasAddressTaken() returns false for a
function, the function's only uses are call sites.  That's not true
because there can be references by BlockAddresses too.

Fix the pass to handle this case.  Fix
BlockAddress::replaceUsesOfWithOnConstant() to allow a function's type
to be changed by RAUW'ing the function with a bitcast of the recreated
function.

Patch by Mark Seaborn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183933 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-13 19:51:17 +00:00
autoconf Don't define LTDL_SHLIBPATH_VAR. 2013-06-11 19:04:13 +00:00
bindings
cmake Don't define LTDL_SHLIBPATH_VAR. 2013-06-11 19:04:13 +00:00
docs Update Release Process doc 2013-06-12 11:35:33 +00:00
examples
include Have sys::FindProgramByName return a std::string. 2013-06-13 19:25:37 +00:00
lib Fix DeleteDeadVarargs not to crash on functions referenced by BlockAddresses 2013-06-13 19:51:17 +00:00
projects Don't define LTDL_SHLIBPATH_VAR. 2013-06-11 19:04:13 +00:00
runtime Remove "-Wl,-seg1addr -Wl,0xE0000000" from link options. 2013-06-04 15:26:37 +00:00
test Fix DeleteDeadVarargs not to crash on functions referenced by BlockAddresses 2013-06-13 19:51:17 +00:00
tools Have sys::FindProgramByName return a std::string. 2013-06-13 19:25:37 +00:00
unittests Remove the program class. 2013-06-12 20:58:35 +00:00
utils Have sys::FindProgramByName return a std::string. 2013-06-13 19:25:37 +00:00
.arcconfig
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
configure Don't define LTDL_SHLIBPATH_VAR. 2013-06-11 19:04:13 +00:00
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules
README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you're writing a package for LLVM, see docs/Packaging.rst for our
suggestions.