Add the LLVM context to this c'tor. It will be needed in the future.

llvm-svn: 165687
This commit is contained in:
Bill Wendling 2012-10-11 01:10:00 +00:00
parent 205a5f682c
commit d56ce45fd5
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ private:
public:
Attributes() : Attrs(0) {}
explicit Attributes(uint64_t Val);
explicit Attributes(AttrVal Val);
explicit Attributes(LLVMContext &C, AttrVal Val);
Attributes(const Attributes &A);
class Builder {

View File

@ -29,7 +29,7 @@ using namespace llvm;
Attributes::Attributes(uint64_t Val) : Attrs(Val) {}
Attributes::Attributes(AttrVal Val)
Attributes::Attributes(LLVMContext &C, AttrVal Val)
: Attrs(Attributes::get(Attributes::Builder().addAttribute(Val)).Attrs) {}
Attributes::Attributes(AttributesImpl *A) : Attrs(A->Bits) {}