mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Decode the LLVM attributes from bitcode using the attributes builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -215,6 +215,11 @@ addAttribute(Attributes::AttrVal Val) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
Attributes::Builder &Attributes::Builder::addRawValue(uint64_t Val) {
|
||||
Bits |= Val;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Attributes::Builder &Attributes::Builder::addAlignmentAttr(unsigned Align) {
|
||||
if (Align == 0) return *this;
|
||||
assert(isPowerOf2_32(Align) && "Alignment must be a power of two.");
|
||||
|
||||
Reference in New Issue
Block a user