mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
print aliases before functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -848,15 +848,16 @@ void AssemblyWriter::printModule(const Module *M) {
|
|||||||
for (Module::const_global_iterator I = M->global_begin(), E = M->global_end();
|
for (Module::const_global_iterator I = M->global_begin(), E = M->global_end();
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
printGlobal(I);
|
printGlobal(I);
|
||||||
|
|
||||||
|
// Output all aliases.
|
||||||
|
if (!M->alias_empty()) Out << "\n";
|
||||||
|
for (Module::const_alias_iterator I = M->alias_begin(), E = M->alias_end();
|
||||||
|
I != E; ++I)
|
||||||
|
printAlias(I);
|
||||||
|
|
||||||
// Output all of the functions.
|
// Output all of the functions.
|
||||||
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
|
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||||
printFunction(I);
|
printFunction(I);
|
||||||
|
|
||||||
// Output all aliases
|
|
||||||
for (Module::const_alias_iterator I = M->alias_begin(), E = M->alias_end();
|
|
||||||
I != E; ++I)
|
|
||||||
printAlias(I);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
||||||
|
Reference in New Issue
Block a user