mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Stop using deprecated types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d9be9e395
commit
e9c6d36377
@ -1113,7 +1113,8 @@ bool GlobalOpt::OptimizeGlobalVars(Module &M) {
|
||||
/// FindGlobalCtors - Find the llvm.globalctors list, verifying that all
|
||||
/// initializers have an init priority of 65535.
|
||||
GlobalVariable *GlobalOpt::FindGlobalCtors(Module &M) {
|
||||
for (Module::giterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
|
||||
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
|
||||
I != E; ++I)
|
||||
if (I->getName() == "llvm.global_ctors") {
|
||||
// Found it, verify it's an array of { int, void()* }.
|
||||
const ArrayType *ATy =dyn_cast<ArrayType>(I->getType()->getElementType());
|
||||
|
Loading…
x
Reference in New Issue
Block a user