summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionValueFileSpec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueFileSpec.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp
index 20b0b043e0b..3a1f26dd5f6 100644
--- a/lldb/source/Interpreter/OptionValueFileSpec.cpp
+++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp
@@ -113,4 +113,12 @@ OptionValueFileSpec::AutoComplete (CommandInterpreter &interpreter,
+const lldb::DataBufferSP &
+OptionValueFileSpec::GetFileContents()
+{
+ if (!m_data_sp && m_current_value)
+ m_data_sp = m_current_value.ReadFileContents();
+ return m_data_sp;
+}
+
OpenPOWER on IntegriCloud