mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Revert the 'EnableInitializing' flag. There is debate on whether we should run that pass by default in LTO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -46,9 +46,6 @@
|
|||||||
#include "llvm/ADT/StringExtras.h"
|
#include "llvm/ADT/StringExtras.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static cl::opt<bool> EnableInternalizing("enable-internalizing", cl::init(false),
|
|
||||||
cl::desc("Internalize functions during LTO"));
|
|
||||||
|
|
||||||
static cl::opt<bool> DisableInline("disable-inlining", cl::init(false),
|
static cl::opt<bool> DisableInline("disable-inlining", cl::init(false),
|
||||||
cl::desc("Do not run the inliner pass"));
|
cl::desc("Do not run the inliner pass"));
|
||||||
|
|
||||||
@@ -278,14 +275,6 @@ static void findUsedValues(GlobalVariable *LLVMUsed,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LTOCodeGenerator::applyScopeRestrictions() {
|
void LTOCodeGenerator::applyScopeRestrictions() {
|
||||||
// Internalize only if specifically asked for. Otherwise, global symbols which
|
|
||||||
// exist in the final image, but which are used outside of that image
|
|
||||||
// (e.g. bundling) may be removed. This also happens when a function is used
|
|
||||||
// only in inline asm. LLVM doesn't recognize that as a "use", so it could be
|
|
||||||
// stripped.
|
|
||||||
if (!EnableInternalizing)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (_scopeRestrictionsDone) return;
|
if (_scopeRestrictionsDone) return;
|
||||||
Module *mergedModule = _linker.getModule();
|
Module *mergedModule = _linker.getModule();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user