mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
print alignment info for globals and functions
llvm-svn: 24212
This commit is contained in:
parent
96d1807bfc
commit
6991a6f23f
@ -832,6 +832,10 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
||||
assert(C && "GlobalVar initializer isn't constant?");
|
||||
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
|
||||
}
|
||||
|
||||
if (GV->getAlignment()) {
|
||||
Out << ", align " << GV->getAlignment();
|
||||
}
|
||||
|
||||
printInfoComment(*GV);
|
||||
Out << "\n";
|
||||
@ -940,6 +944,9 @@ void AssemblyWriter::printFunction(const Function *F) {
|
||||
}
|
||||
Out << ')';
|
||||
|
||||
if (F->getAlignment())
|
||||
Out << " align " << F->getAlignment();
|
||||
|
||||
if (F->isExternal()) {
|
||||
Out << "\n";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user