mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Use getPreferredAlignmentLog.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d8d5a522f
commit
ff805b50f8
@ -92,7 +92,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
||||
std::string name = Mang->getValueName(I);
|
||||
Constant *C = I->getInitializer();
|
||||
unsigned Size = TD.getTypeSize(C->getType());
|
||||
unsigned Align = TD.getTypeAlignmentShift(C->getType());
|
||||
unsigned Align = getPreferredAlignmentLog(I);
|
||||
|
||||
switch (I->getLinkage()) {
|
||||
default: assert(0 && "Unknown linkage type!");
|
||||
|
Loading…
Reference in New Issue
Block a user