diff options
author | Enrico Granata <egranata@apple.com> | 2012-02-29 03:28:49 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-02-29 03:28:49 +0000 |
commit | 7bc0ec3aad663a2c81fddf9da38dba46bba6be19 (patch) | |
tree | 3c6cb745570d4095b37a18dd0f6cbacf04e79eaf /lldb/scripts/Python/finish-swig-Python-LLDB.sh | |
parent | 3203f6b9daa558443f406686522780d0271d7824 (diff) | |
download | bcm5719-llvm-7bc0ec3aad663a2c81fddf9da38dba46bba6be19.tar.gz bcm5719-llvm-7bc0ec3aad663a2c81fddf9da38dba46bba6be19.zip |
This commit:
a) adds a Python summary provider for NSDate
b) changes the initialization for ScriptInterpreter so that we are not passing a bulk of Python-specific function pointers around
c) provides a new ScriptInterpreterObject class that allows for ref-count safe wrapping of scripting objects on the C++ side
d) contains much needed performance improvements:
1) the pointer to the Python function generating a scripted summary is now cached instead of looked up every time
2) redundant memory reads in the Python ObjC runtime wrapper are eliminated
3) summaries now use the m_summary_str in ValueObject to store their data instead of passing around ( == copying) an std::string object
e) contains other minor fixes, such as adding descriptive error messages for some cases of summary generation failure
llvm-svn: 151703
Diffstat (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh')
-rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 5f5eb8b1778..aabd94d8087 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -382,6 +382,20 @@ else fi fi +if [ -f "${SRC_ROOT}/examples/summaries/cocoa/NSDate.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying NSDate.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/summaries/cocoa/NSDate.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/summaries/cocoa/NSDate.py" + fi +fi + if [ -f "${SRC_ROOT}/examples/summaries/cocoa/cache.py" ] then if [ $Debug == 1 ] |