mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Update to use the new MathExtras.h support for log2 computation.
Patch contributed by Jim Laskey! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -698,7 +698,7 @@ bool AIXAsmPrinter::doFinalization(Module &M) {
|
||||
O << "\t.lcomm " << Name << ",16,_global.bss_c";
|
||||
} else {
|
||||
O << "\t.comm " << Name << "," << TD.getTypeSize(I->getType())
|
||||
<< "," << log2((unsigned)TD.getTypeAlignment(I->getType()));
|
||||
<< "," << Log2_32((unsigned)TD.getTypeAlignment(I->getType()));
|
||||
}
|
||||
O << "\t\t# ";
|
||||
WriteAsOperand(O, I, true, true, &M);
|
||||
|
||||
Reference in New Issue
Block a user