summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-20 14:44:42 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-20 14:44:42 +0000
commit8ce1e432d1c942d101617b3c623970a4f763f93d (patch)
treefcdf2ec41ce4f7e27ab421aaa942fb479e2b2d2e /include
parent6dfabb6cc72118e046d2a466aa6adcec4c4923db (diff)
downloadllvm-8ce1e432d1c942d101617b3c623970a4f763f93d.tar.gz
llvm-8ce1e432d1c942d101617b3c623970a4f763f93d.tar.bz2
llvm-8ce1e432d1c942d101617b3c623970a4f763f93d.tar.xz
Make the 'getAsString' function a method of the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Attributes.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index cf37e93718..fe0cc353c1 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -215,6 +215,12 @@ public:
}
Attributes operator ~ () const { return Attributes(~Bits); }
uint64_t Raw() const { return Bits; }
+
+ /// The set of Attributes set in Attributes is converted to a string of
+ /// equivalent mnemonics. This is, presumably, for writing out the mnemonics
+ /// for the assembly writer.
+ /// @brief Convert attribute bits to text
+ std::string getAsString() const;
};
namespace Attribute {
@@ -345,12 +351,6 @@ inline Attributes decodeLLVMAttributesForBitcode(uint64_t EncodedAttrs) {
return Attrs;
}
-
-/// The set of Attributes set in Attributes is converted to a
-/// string of equivalent mnemonics. This is, presumably, for writing out
-/// the mnemonics for the assembly writer.
-/// @brief Convert attribute bits to text
-std::string getAsString(Attributes Attrs);
} // end namespace Attribute
/// This is just a pair of values to associate a set of attributes