The preferred alignment defaults to the abi alignment. Omit if it is the same.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-12-16 18:01:51 +00:00
parent 63da3bbcf5
commit ea53c6ae30
11 changed files with 19 additions and 19 deletions

View File

@@ -56,11 +56,11 @@ static std::string computeDataLayout(const MipsSubtarget &ST) {
// Pointers are 32 bit on some ABIs.
if (!ST.isABI_N64())
Ret += "-p:32:32:32";
Ret += "-p:32:32";
// 8 and 16 bit integers only need no have natural alignment, but try to
// align them to 32 bits. 64 bit integers have natural alignment.
Ret += "-i8:8:32-i16:16:32-i64:64:64";
Ret += "-i8:8:32-i16:16:32-i64:64";
// 32 bit registers are always available and the stack is at least 64 bit
// aligned. On N64 64 bit registers are also available and the stack is