mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Const-correct and prevent a copy of a SmallPtrSet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25fc910167
commit
7ce4ac12fc
@ -2725,7 +2725,7 @@ static int compareNames(Constant *const *A, Constant *const *B) {
|
||||
}
|
||||
|
||||
static void setUsedInitializer(GlobalVariable &V,
|
||||
SmallPtrSet<GlobalValue *, 8> Init) {
|
||||
const SmallPtrSet<GlobalValue *, 8> &Init) {
|
||||
if (Init.empty()) {
|
||||
V.eraseFromParent();
|
||||
return;
|
||||
@ -2825,7 +2825,7 @@ static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) {
|
||||
return U.usedCount(&GA) || U.compilerUsedCount(&GA);
|
||||
}
|
||||
|
||||
static bool hasUsesToReplace(GlobalAlias &GA, LLVMUsed &U, bool &RenameTarget) {
|
||||
static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U,bool &RenameTarget) {
|
||||
RenameTarget = false;
|
||||
bool Ret = false;
|
||||
if (hasUseOtherThanLLVMUsed(GA, U))
|
||||
|
Loading…
Reference in New Issue
Block a user