mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Fix a bug that prevented llvm-extract -delete from working.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01426e1a27
commit
b9a31a15f9
@ -52,7 +52,7 @@ namespace {
|
|||||||
bool deleteGV() {
|
bool deleteGV() {
|
||||||
for (std::vector<GlobalValue*>::iterator GI = Named.begin(),
|
for (std::vector<GlobalValue*>::iterator GI = Named.begin(),
|
||||||
GE = Named.end(); GI != GE; ++GI) {
|
GE = Named.end(); GI != GE; ++GI) {
|
||||||
if (Function* NamedFunc = dyn_cast<Function>(&*GI)) {
|
if (Function* NamedFunc = dyn_cast<Function>(*GI)) {
|
||||||
// If we're in relinking mode, set linkage of all internal callees to
|
// If we're in relinking mode, set linkage of all internal callees to
|
||||||
// external. This will allow us extract function, and then - link
|
// external. This will allow us extract function, and then - link
|
||||||
// everything together
|
// everything together
|
||||||
|
Loading…
x
Reference in New Issue
Block a user