summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-27 05:25:00 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-27 05:25:00 +0000
commit3af97225291fe0c74ece7e15d6b45773a2a60007 (patch)
tree9d3519ceb05afa9503550433daaee8354c200b97 /llvm/lib/LTO
parent54e97d5dc02867201f193f61be6edaaca8398d2c (diff)
downloadbcm5719-llvm-3af97225291fe0c74ece7e15d6b45773a2a60007.tar.gz
bcm5719-llvm-3af97225291fe0c74ece7e15d6b45773a2a60007.zip
Fix some cases were ArrayRefs were being passed by reference. Also remove 'const' from some other ArrayRef uses since its implicitly const already.
llvm-svn: 216524
Diffstat (limited to 'llvm/lib/LTO')
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 54f5a6b4c50..887fddefc57 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -312,7 +312,7 @@ bool LTOCodeGenerator::determineTarget(std::string &errMsg) {
void LTOCodeGenerator::
applyRestriction(GlobalValue &GV,
- const ArrayRef<StringRef> &Libcalls,
+ ArrayRef<StringRef> Libcalls,
std::vector<const char*> &MustPreserveList,
SmallPtrSetImpl<GlobalValue*> &AsmUsed,
Mangler &Mangler) {
OpenPOWER on IntegriCloud