mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Use better variable names
llvm-svn: 53859
This commit is contained in:
parent
3d4c55bb7a
commit
78bab0e7f2
@ -112,13 +112,13 @@ ELFTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
|
||||
const TargetData *TD = ETM->getTargetData();
|
||||
Constant *C = cast<GlobalVariable>(GV)->getInitializer();
|
||||
const ConstantArray *CVA = cast<ConstantArray>(C);
|
||||
const Type *Type = CVA->getType()->getElementType();
|
||||
const Type *Ty = CVA->getType()->getElementType();
|
||||
|
||||
unsigned Size = TD->getABITypeSize(Type);
|
||||
unsigned Size = TD->getABITypeSize(Ty);
|
||||
if (Size <= 16) {
|
||||
// We also need alignment here
|
||||
const TargetData *TD = ETM->getTargetData();
|
||||
unsigned Align = TD->getPrefTypeAlignment(Type);
|
||||
unsigned Align = TD->getPrefTypeAlignment(Ty);
|
||||
if (Align < Size)
|
||||
Align = Size;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user