diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-04-17 23:35:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-04-17 23:35:59 +0000 |
commit | b1ac6e617291e2a628bc460933bde97c73466cb0 (patch) | |
tree | c4207d2f1e88610f79ccf1bd5e815607d34ee7eb /include/llvm | |
parent | f92bf40cedf2204211b96d27e89e0e2f0170b78d (diff) | |
download | external_llvm-b1ac6e617291e2a628bc460933bde97c73466cb0.zip external_llvm-b1ac6e617291e2a628bc460933bde97c73466cb0.tar.gz external_llvm-b1ac6e617291e2a628bc460933bde97c73466cb0.tar.bz2 |
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')
-rw-r--r-- | include/llvm/IR/Attributes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 074b387..6c014ea 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; |