[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 25 19:24:29 PDT 2007
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.275 -> 1.276
---
Log message:
print aliases before functions
---
Diffs of the changes: (+6 -5)
AsmWriter.cpp | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.275 llvm/lib/VMCore/AsmWriter.cpp:1.276
--- llvm/lib/VMCore/AsmWriter.cpp:1.275 Wed Apr 25 09:27:10 2007
+++ llvm/lib/VMCore/AsmWriter.cpp Wed Apr 25 21:24:10 2007
@@ -848,15 +848,16 @@
for (Module::const_global_iterator I = M->global_begin(), E = M->global_end();
I != E; ++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.
for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++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) {
More information about the llvm-commits
mailing list