summaryrefslogtreecommitdiff
path: root/include/llvm/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-04-17 23:35:59 +0000
committerBill Wendling <isanbard@gmail.com>2013-04-17 23:35:59 +0000
commitb1ac6e617291e2a628bc460933bde97c73466cb0 (patch)
treec4207d2f1e88610f79ccf1bd5e815607d34ee7eb /include/llvm/IR
parentf92bf40cedf2204211b96d27e89e0e2f0170b78d (diff)
downloadllvm-b1ac6e617291e2a628bc460933bde97c73466cb0.tar.gz
llvm-b1ac6e617291e2a628bc460933bde97c73466cb0.tar.bz2
llvm-b1ac6e617291e2a628bc460933bde97c73466cb0.tar.xz
Add an option `-enable-old-style-attr-syntax' to print out function attributes in the "old" style.
It's sometimes beneficial to emit a testcase with the old style attribute syntax. Allow someone to do this. <rdar://problem/13563209> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r--include/llvm/IR/Attributes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 074b38779a..6c014ea104 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -306,7 +306,8 @@ public:
unsigned getStackAlignment(unsigned Index) const;
/// \brief Return the attributes at the index as a string.
- std::string getAsString(unsigned Index, bool InAttrGrp = false) const;
+ std::string getAsString(unsigned Index, bool TargetIndependent = false,
+ bool InAttrGrp = false) const;
typedef ArrayRef<Attribute>::iterator iterator;