projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1eb4d
)
Use the Builder to create the stack alignment attribute.
author
Bill Wendling
<isanbard@gmail.com>
Sun, 14 Oct 2012 03:28:14 +0000
(
03:28
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 14 Oct 2012 03:28:14 +0000
(
03:28
+0000)
llvm-svn: 165888
clang/lib/CodeGen/TargetInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/TargetInfo.cpp
b/clang/lib/CodeGen/TargetInfo.cpp
index
fe85283
..
d84d57c
100644
(file)
--- a/
clang/lib/CodeGen/TargetInfo.cpp
+++ b/
clang/lib/CodeGen/TargetInfo.cpp
@@
-968,8
+968,9
@@
void X86_32TargetCodeGenInfo::SetTargetAttributes(const Decl *D,
llvm::Function *Fn = cast<llvm::Function>(GV);
// Now add the 'alignstack' attribute with a value of 16.
- Fn->addAttribute(~0U,
- llvm::Attributes::constructStackAlignmentFromInt(16));
+ llvm::Attributes::Builder B;
+ B.addStackAlignmentAttr(16);
+ Fn->addAttribute(~0U, llvm::Attributes::get(B));
}
}
}