summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/Options.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Support/Options.h')
-rw-r--r--llvm/include/llvm/Support/Options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Options.h b/llvm/include/llvm/Support/Options.h
index 7b61b2308f5..9019804d24e 100644
--- a/llvm/include/llvm/Support/Options.h
+++ b/llvm/include/llvm/Support/Options.h
@@ -93,7 +93,7 @@ public:
/// option stores (\p ValT), the class that will read the option (\p Base),
/// and the member that the class will store the data into (\p Mem).
template <typename ValT, typename Base, ValT(Base::*Mem)>
- static void registerOption(const char *ArgStr, const char *Desc,
+ static void registerOption(StringRef ArgStr, StringRef Desc,
const ValT &InitValue) {
cl::opt<ValT> *Option = new cl::opt<ValT>(ArgStr, cl::desc(Desc),
cl::Hidden, cl::init(InitValue));
OpenPOWER on IntegriCloud