diff options
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGObjCGNU.cpp | 12 | ||||
-rw-r--r-- | clang/lib/CodeGen/SanitizerBlacklist.cpp | 4 | ||||
-rw-r--r-- | clang/lib/CodeGen/SanitizerBlacklist.h | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp index 619a66ab4a6..562bbef354e 100644 --- a/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/clang/lib/CodeGen/CGObjCGNU.cpp @@ -391,8 +391,8 @@ private: /// /// This structure is used by both classes and categories, and contains a next /// pointer allowing them to be chained together in a linked list. - llvm::Constant *GenerateMethodList(const StringRef &ClassName, - const StringRef &CategoryName, + llvm::Constant *GenerateMethodList(StringRef ClassName, + StringRef CategoryName, ArrayRef<Selector> MethodSels, ArrayRef<llvm::Constant *> MethodTypes, bool isClassMethodList); @@ -875,8 +875,8 @@ void CGObjCGNU::EmitClassRef(const std::string &className) { llvm::GlobalValue::WeakAnyLinkage, ClassSymbol, symbolRef); } -static std::string SymbolNameForMethod(const StringRef &ClassName, - const StringRef &CategoryName, const Selector MethodName, +static std::string SymbolNameForMethod( StringRef ClassName, + StringRef CategoryName, const Selector MethodName, bool isClassMethod) { std::string MethodNameColonStripped = MethodName.getAsString(); std::replace(MethodNameColonStripped.begin(), MethodNameColonStripped.end(), @@ -1463,8 +1463,8 @@ CGObjCGNU::GenerateMessageSend(CodeGenFunction &CGF, /// Generates a MethodList. Used in construction of a objc_class and /// objc_category structures. llvm::Constant *CGObjCGNU:: -GenerateMethodList(const StringRef &ClassName, - const StringRef &CategoryName, +GenerateMethodList(StringRef ClassName, + StringRef CategoryName, ArrayRef<Selector> MethodSels, ArrayRef<llvm::Constant *> MethodTypes, bool isClassMethodList) { diff --git a/clang/lib/CodeGen/SanitizerBlacklist.cpp b/clang/lib/CodeGen/SanitizerBlacklist.cpp index 9f1ddc8e7d7..9882a6dc41b 100644 --- a/clang/lib/CodeGen/SanitizerBlacklist.cpp +++ b/clang/lib/CodeGen/SanitizerBlacklist.cpp @@ -31,7 +31,7 @@ static StringRef GetGlobalTypeString(const llvm::GlobalValue &G) { } bool SanitizerBlacklist::isIn(const llvm::Module &M, - const StringRef Category) const { + StringRef Category) const { return SCL->inSection("src", M.getModuleIdentifier(), Category); } @@ -41,7 +41,7 @@ bool SanitizerBlacklist::isIn(const llvm::Function &F) const { } bool SanitizerBlacklist::isIn(const llvm::GlobalVariable &G, - const StringRef Category) const { + StringRef Category) const { return isIn(*G.getParent(), Category) || SCL->inSection("global", G.getName(), Category) || SCL->inSection("type", GetGlobalTypeString(G), Category); diff --git a/clang/lib/CodeGen/SanitizerBlacklist.h b/clang/lib/CodeGen/SanitizerBlacklist.h index e890c5c57da..44237ad5335 100644 --- a/clang/lib/CodeGen/SanitizerBlacklist.h +++ b/clang/lib/CodeGen/SanitizerBlacklist.h @@ -34,10 +34,10 @@ class SanitizerBlacklist { public: SanitizerBlacklist(llvm::SpecialCaseList *SCL) : SCL(SCL) {} bool isIn(const llvm::Module &M, - const StringRef Category = StringRef()) const; + StringRef Category = StringRef()) const; bool isIn(const llvm::Function &F) const; bool isIn(const llvm::GlobalVariable &G, - const StringRef Category = StringRef()) const; + StringRef Category = StringRef()) const; bool isBlacklistedType(StringRef MangledTypeName) const; }; } // end namespace CodeGen |