add bitcode alias support
[oota-llvm.git] / lib / CodeGen / ELFWriter.cpp
index 5fd3dcc1d6cb354e22dceafaf3810e075e2aeecd..ffc0a929f318d67ef2ac7dea84a44d2719c918be 100644 (file)
@@ -255,7 +255,7 @@ void ELFWriter::EmitGlobal(GlobalVariable *GV) {
   }
 
   const Type *GVType = (const Type*)GV->getType();
-  unsigned Align = TM.getTargetData()->getTypeAlignmentPref(GVType);
+  unsigned Align = TM.getTargetData()->getPrefTypeAlignment(GVType);
   unsigned Size  = TM.getTargetData()->getTypeSize(GVType);
 
   // If this global has a zero initializer, it is part of the .bss or common