forked from OSchip/llvm-project
parent
fd3fe9e45a
commit
02bf92d226
|
@ -566,7 +566,7 @@ LLDBSwigPython_CalculateNumChildren
|
|||
}
|
||||
|
||||
if (argc.count == 1)
|
||||
ret_val = std::min(ret_val, max);
|
||||
ret_val = std::min(ret_val, static_cast<size_t>(max));
|
||||
|
||||
return ret_val;
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ import six
|
|||
|
||||
/* C++ headers to be included. */
|
||||
%{
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
%}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue