aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineFrameInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-28 00:43:03 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-28 00:43:03 +0000
commitfb8075d03f5c87bd57dcc9c5f2304f6b13c55aad (patch)
treec0823b1738e1ce2f7c6c219547f9f116d53074bf /include/llvm/CodeGen/MachineFrameInfo.h
parent41ce5b82da30b27d00993a2882cc52f427f6309c (diff)
downloadexternal_llvm-fb8075d03f5c87bd57dcc9c5f2304f6b13c55aad.zip
external_llvm-fb8075d03f5c87bd57dcc9c5f2304f6b13c55aad.tar.gz
external_llvm-fb8075d03f5c87bd57dcc9c5f2304f6b13c55aad.tar.bz2
Add a quick and dirty "loop aligner pass". x86 uses it to align its loops to 16-byte boundaries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 3a04325..4cc9073 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -204,7 +204,7 @@ public:
}
/// getObjectAlignment - Return the alignment of the specified stack object...
- int getObjectAlignment(int ObjectIdx) const {
+ unsigned getObjectAlignment(int ObjectIdx) const {
assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
"Invalid Object Idx!");
return Objects[ObjectIdx+NumFixedObjects].Alignment;