Update the prompt related functions to use StringRefs.

llvm-svn: 282269
This commit is contained in:
Zachary Turner
2016-09-23 18:06:53 +00:00
parent 0120e3f278
commit 514d8cd83e
19 changed files with 117 additions and 81 deletions

View File

@@ -491,7 +491,7 @@ const char *OptionValueProperties::GetPropertyAtIndexAsString(
}
bool OptionValueProperties::SetPropertyAtIndexAsString(
const ExecutionContext *exe_ctx, uint32_t idx, const char *new_value) {
const ExecutionContext *exe_ctx, uint32_t idx, llvm::StringRef new_value) {
const Property *property = GetPropertyAtIndex(exe_ctx, true, idx);
if (property) {
OptionValue *value = property->GetValue().get();