[llvm-commits] [llvm] r165687 - in /llvm/trunk: include/llvm/Attributes.h lib/VMCore/Attributes.cpp
Bill Wendling
isanbard at gmail.com
Wed Oct 10 18:10:00 PDT 2012
Author: void
Date: Wed Oct 10 20:10:00 2012
New Revision: 165687
URL: http://llvm.org/viewvc/llvm-project?rev=165687&view=rev
Log:
Add the LLVM context to this c'tor. It will be needed in the future.
Modified:
llvm/trunk/include/llvm/Attributes.h
llvm/trunk/lib/VMCore/Attributes.cpp
Modified: llvm/trunk/include/llvm/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Attributes.h?rev=165687&r1=165686&r2=165687&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Attributes.h (original)
+++ llvm/trunk/include/llvm/Attributes.h Wed Oct 10 20:10:00 2012
@@ -95,7 +95,7 @@
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 {
Modified: llvm/trunk/lib/VMCore/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Attributes.cpp?rev=165687&r1=165686&r2=165687&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Attributes.cpp (original)
+++ llvm/trunk/lib/VMCore/Attributes.cpp Wed Oct 10 20:10:00 2012
@@ -29,7 +29,7 @@
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) {}
More information about the llvm-commits
mailing list