mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
modify per review commentary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c783e46c3
commit
00d56b96e5
@ -582,8 +582,8 @@ void AsmPrinter::EmitString(const std::string &String) const {
|
|||||||
// Use the maximum of the specified alignment and the alignment from the
|
// Use the maximum of the specified alignment and the alignment from the
|
||||||
// specified GlobalValue (if any).
|
// specified GlobalValue (if any).
|
||||||
void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
|
void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
|
||||||
if (GV && GV->getAlignment() && Log2_32(GV->getAlignment()) > NumBits)
|
if (GV && GV->getAlignment())
|
||||||
NumBits = Log2_32(GV->getAlignment());
|
NumBits = std::max(NumBits, Log2_32(GV->getAlignment()));
|
||||||
if (NumBits == 0) return; // No need to emit alignment.
|
if (NumBits == 0) return; // No need to emit alignment.
|
||||||
if (TAI->getAlignmentIsInBytes()) NumBits = 1 << NumBits;
|
if (TAI->getAlignmentIsInBytes()) NumBits = 1 << NumBits;
|
||||||
O << TAI->getAlignDirective() << NumBits << "\n";
|
O << TAI->getAlignDirective() << NumBits << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user