projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff0210d
)
add a helper function for bumping up the alignment of a machine function.
author
Chris Lattner
<sabre@nondot.org>
Wed, 27 Jan 2010 23:35:43 +0000
(23:35 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 27 Jan 2010 23:35:43 +0000
(23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94700
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineFunction.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineFunction.h
b/include/llvm/CodeGen/MachineFunction.h
index 253c1249c5905329c69b876ca3dccc30fed5b4d5..828540b7ce997127c7f02b33133709e096c47da4 100644
(file)
--- a/
include/llvm/CodeGen/MachineFunction.h
+++ b/
include/llvm/CodeGen/MachineFunction.h
@@
-177,6
+177,11
@@
public:
///
void setAlignment(unsigned A) { Alignment = A; }
+ /// EnsureAlignment - Make sure the function is at least 'A' bits aligned.
+ void EnsureAlignment(unsigned A) {
+ if (Alignment < A) Alignment = A;
+ }
+
/// getInfo - Keep track of various per-function pieces of information for
/// backends that would like to do so.
///