summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-11 08:43:33 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-11 08:43:33 +0000
commitb29ce26ea60f7516c853318ffbfc107fde9ad897 (patch)
tree24b16ea7c960b04ed253ecf581394c321fb135bb /include/llvm/IR/Attributes.h
parent595ef3e314e4c40b1f8b6b4f90b418a30a637242 (diff)
downloadllvm-b29ce26ea60f7516c853318ffbfc107fde9ad897.tar.gz
llvm-b29ce26ea60f7516c853318ffbfc107fde9ad897.tar.bz2
llvm-b29ce26ea60f7516c853318ffbfc107fde9ad897.tar.xz
Add support for printing out the attribute groups.
This emits the attribute groups that are used by the functions. (It currently doesn't print out return type or parameter attributes within attribute groups.) Note: The functions still retrieve their attributes from the "old" bitcode format (using the deprecated 'Raw()' method). This means that string attributes within an attribute group will not show up during a disassembly. This will be addressed in a future commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Attributes.h')
-rw-r--r--include/llvm/IR/Attributes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index d4836ee30e..d064e7e2ad 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -171,7 +171,7 @@ public:
/// \brief The Attribute is converted to a string of equivalent mnemonic. This
/// is, presumably, for writing out the mnemonics for the assembly writer.
- std::string getAsString() const;
+ std::string getAsString(bool InAttrGrp = false) const;
/// \brief Equality and non-equality operators.
bool operator==(Attribute A) const { return pImpl == A.pImpl; }
@@ -317,7 +317,7 @@ public:
unsigned getStackAlignment(unsigned Index) const;
/// \brief Return the attributes at the index as a string.
- std::string getAsString(unsigned Index) const;
+ std::string getAsString(unsigned Index, bool InAttrGrp = false) const;
typedef ArrayRef<Attribute>::iterator iterator;