mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 12:24:34 +00:00
print section info
llvm-svn: 24313
This commit is contained in:
parent
63aaf38163
commit
5b42a5ea1a
@ -833,10 +833,11 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
||||
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
|
||||
}
|
||||
|
||||
if (GV->getAlignment()) {
|
||||
if (GV->hasSection())
|
||||
Out << ", section \"" << GV->getSection() << '"';
|
||||
if (GV->getAlignment())
|
||||
Out << ", align " << GV->getAlignment();
|
||||
}
|
||||
|
||||
|
||||
printInfoComment(*GV);
|
||||
Out << "\n";
|
||||
}
|
||||
@ -944,9 +945,11 @@ void AssemblyWriter::printFunction(const Function *F) {
|
||||
}
|
||||
Out << ')';
|
||||
|
||||
if (F->hasSection())
|
||||
Out << " section \"" << F->getSection() << '"';
|
||||
if (F->getAlignment())
|
||||
Out << " align " << F->getAlignment();
|
||||
|
||||
|
||||
if (F->isExternal()) {
|
||||
Out << "\n";
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user