summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-12 17:01:48 +0000
committerZachary Turner <zturner@google.com>2015-11-12 17:01:48 +0000
commit02bf92d22651dd7feb2828974fdcc5dc0e23ddfb (patch)
treef217dfc077c6da0537bef5c82bd9d099991a2902 /lldb/source/Plugins/ScriptInterpreter/Python
parentfd3fe9e45aeadd4cfb41966c7bd5e7c36c687ab0 (diff)
downloadbcm5719-llvm-02bf92d22651dd7feb2828974fdcc5dc0e23ddfb.tar.gz
bcm5719-llvm-02bf92d22651dd7feb2828974fdcc5dc0e23ddfb.zip
Fix non-Windows build after r252906.
llvm-svn: 252909
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp2
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index abcf71b8663..73f9b8cae88 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -109,7 +109,7 @@ PythonObject::Str() const
}
PythonObject
-PythonObject::ResolveNameWithDictionary(llvm::StringRef name, PythonDictionary dict)
+PythonObject::ResolveNameWithDictionary(llvm::StringRef name, const PythonDictionary &dict)
{
size_t dot_pos = name.find_first_of('.');
llvm::StringRef piece = name.substr(0, dot_pos);
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
index 3794cc04a65..a23052f6871 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
@@ -205,11 +205,11 @@ public:
Str() const;
static PythonObject
- ResolveNameWithDictionary(llvm::StringRef name, PythonDictionary dict);
+ ResolveNameWithDictionary(llvm::StringRef name, const PythonDictionary &dict);
template<typename T>
static T
- ResolveNameWithDictionary(llvm::StringRef name, PythonDictionary dict)
+ ResolveNameWithDictionary(llvm::StringRef name, const PythonDictionary &dict)
{
return ResolveNameWithDictionary(name, dict).AsType<T>();
}
OpenPOWER on IntegriCloud