mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
add bitcode alias support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,12 +28,22 @@ ValueEnumerator::ValueEnumerator(const Module *M) {
|
||||
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||
EnumerateValue(I);
|
||||
|
||||
// Enumerate the aliases.
|
||||
for (Module::const_alias_iterator I = M->alias_begin(), E = M->alias_end();
|
||||
I != E; ++I)
|
||||
EnumerateValue(I);
|
||||
|
||||
// Enumerate the global variable initializers.
|
||||
for (Module::const_global_iterator I = M->global_begin(),
|
||||
E = M->global_end(); I != E; ++I)
|
||||
if (I->hasInitializer())
|
||||
EnumerateValue(I->getInitializer());
|
||||
|
||||
// Enumerate the aliasees.
|
||||
for (Module::const_alias_iterator I = M->alias_begin(), E = M->alias_end();
|
||||
I != E; ++I)
|
||||
EnumerateValue(I->getAliasee());
|
||||
|
||||
// FIXME: Implement the 'string constant' optimization.
|
||||
|
||||
// Enumerate types used by the type symbol table.
|
||||
|
Reference in New Issue
Block a user