diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-04 19:31:42 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-04 19:31:42 +0000 |
| commit | 9299637dc00a921b8ed9a95d3cdb643680d65011 (patch) | |
| tree | 1c019a156dae06fb00b5cbba74c99d0c4d5658b9 /clang/lib/Sema/AttributeList.cpp | |
| parent | 595932f1b0d41774977cb9210f0b673f44cb3877 (diff) | |
| download | bcm5719-llvm-9299637dc00a921b8ed9a95d3cdb643680d65011.tar.gz bcm5719-llvm-9299637dc00a921b8ed9a95d3cdb643680d65011.zip | |
Pass llvm::Triple objects by const reference.
Copying isn't cheap as it contains a std::string.
llvm-svn: 202880
Diffstat (limited to 'clang/lib/Sema/AttributeList.cpp')
| -rw-r--r-- | clang/lib/Sema/AttributeList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/AttributeList.cpp b/clang/lib/Sema/AttributeList.cpp index 7258b37ffe9..c4c1b805c16 100644 --- a/clang/lib/Sema/AttributeList.cpp +++ b/clang/lib/Sema/AttributeList.cpp @@ -155,7 +155,7 @@ struct ParsedAttrInfo { bool (*DiagAppertainsToDecl)(Sema &S, const AttributeList &Attr, const Decl *); bool (*DiagLangOpts)(Sema &S, const AttributeList &Attr); - bool (*ExistsInTarget)(llvm::Triple T); + bool (*ExistsInTarget)(const llvm::Triple &T); unsigned (*SpellingIndexToSemanticSpelling)(const AttributeList &Attr); }; @@ -195,7 +195,7 @@ bool AttributeList::isTypeAttr() const { return getInfo(*this).IsType; } -bool AttributeList::existsInTarget(llvm::Triple T) const { +bool AttributeList::existsInTarget(const llvm::Triple &T) const { return getInfo(*this).ExistsInTarget(T); } |

