summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-10-09 18:39:55 +0000
committerEric Christopher <echristo@gmail.com>2015-10-09 18:39:55 +0000
commit8c47b427f9a152e33dbbf0da2fc415207008bb8e (patch)
tree60a18428ed20f9820402a63fcf307c1868f06960 /clang/lib/Basic/TargetInfo.cpp
parent2c23a80bbfeaa0e6351fa8c9a717fdbdb942b8d2 (diff)
downloadbcm5719-llvm-8c47b427f9a152e33dbbf0da2fc415207008bb8e.tar.gz
bcm5719-llvm-8c47b427f9a152e33dbbf0da2fc415207008bb8e.zip
constify the feature vector going into initFeatureMap as it shouldn't
change the set of features. llvm-svn: 249871
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r--clang/lib/Basic/TargetInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp
index 7b52eb0f081..2afcf1673b0 100644
--- a/clang/lib/Basic/TargetInfo.cpp
+++ b/clang/lib/Basic/TargetInfo.cpp
@@ -312,9 +312,9 @@ void TargetInfo::adjust(const LangOptions &Opts) {
}
}
-bool TargetInfo::initFeatureMap(llvm::StringMap<bool> &Features,
- DiagnosticsEngine &Diags, StringRef CPU,
- std::vector<std::string> &FeatureVec) const {
+bool TargetInfo::initFeatureMap(
+ llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
+ const std::vector<std::string> &FeatureVec) const {
for (const auto &F : FeatureVec) {
const char *Name = F.c_str();
// Apply the feature via the target.
OpenPOWER on IntegriCloud