summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/TargetInfo.h
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
commit515e85c9a4783cbadc7dcd8c9c5d53dc867ad552 (patch)
treef5ef9af2918f6593716502796e4681f94fc71182 /include/clang/Basic/TargetInfo.h
parentba2d572d2604e72dae52571a8baa824c2c87c528 (diff)
constify the feature vector going into initFeatureMap as it shouldn't
change the set of features. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r--include/clang/Basic/TargetInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index 638b6790f7..4e395fce32 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -753,7 +753,7 @@ public:
/// \return False on error (invalid features).
virtual bool initFeatureMap(llvm::StringMap<bool> &Features,
DiagnosticsEngine &Diags, StringRef CPU,
- std::vector<std::string> &FeatureVec) const;
+ const std::vector<std::string> &FeatureVec) const;
/// \brief Get the ABI currently in use.
virtual StringRef getABI() const { return StringRef(); }