mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
print alignment info for globals and functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -832,6 +832,10 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
|||||||
assert(C && "GlobalVar initializer isn't constant?");
|
assert(C && "GlobalVar initializer isn't constant?");
|
||||||
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
|
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GV->getAlignment()) {
|
||||||
|
Out << ", align " << GV->getAlignment();
|
||||||
|
}
|
||||||
|
|
||||||
printInfoComment(*GV);
|
printInfoComment(*GV);
|
||||||
Out << "\n";
|
Out << "\n";
|
||||||
@@ -940,6 +944,9 @@ void AssemblyWriter::printFunction(const Function *F) {
|
|||||||
}
|
}
|
||||||
Out << ')';
|
Out << ')';
|
||||||
|
|
||||||
|
if (F->getAlignment())
|
||||||
|
Out << " align " << F->getAlignment();
|
||||||
|
|
||||||
if (F->isExternal()) {
|
if (F->isExternal()) {
|
||||||
Out << "\n";
|
Out << "\n";
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user