diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:48:02 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:48:02 +0000 |
commit | 6dc4a8bc2c307022e0c330d531109d325fc044cf (patch) | |
tree | d10033092d22061f48f763822a09018fce5de6eb /llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | |
parent | e98cdf9b773f7bce3531345cfda1fa1eedf2fca7 (diff) | |
download | llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.zip llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.tar.gz llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.tar.bz2 |
Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.
llvm-svn: 216820
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index e3a4b38..6c838d1 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -143,7 +143,7 @@ class DFSanABIList { /// Returns whether either this function or its source file are listed in the /// given category. - bool isIn(const Function &F, const StringRef Category) const { + bool isIn(const Function &F, StringRef Category) const { return isIn(*F.getParent(), Category) || SCL->inSection("fun", F.getName(), Category); } @@ -152,7 +152,7 @@ class DFSanABIList { /// /// If GA aliases a function, the alias's name is matched as a function name /// would be. Similarly, aliases of globals are matched like globals. - bool isIn(const GlobalAlias &GA, const StringRef Category) const { + bool isIn(const GlobalAlias &GA, StringRef Category) const { if (isIn(*GA.getParent(), Category)) return true; @@ -164,7 +164,7 @@ class DFSanABIList { } /// Returns whether this module is listed in the given category. - bool isIn(const Module &M, const StringRef Category) const { + bool isIn(const Module &M, StringRef Category) const { return SCL->inSection("src", M.getModuleIdentifier(), Category); } }; |