diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-05-17 22:14:39 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-05-17 22:14:39 +0000 |
commit | 112f5696fb10dfa8c3d6a0c7e75f5b1bacaec247 (patch) | |
tree | 9e89c82994403e84957f4e1ca562e0f79bd2aea7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5bd18b6638215f05c5a0a9dddfd0d595573e8f7b (diff) | |
download | bcm5719-llvm-112f5696fb10dfa8c3d6a0c7e75f5b1bacaec247.tar.gz bcm5719-llvm-112f5696fb10dfa8c3d6a0c7e75f5b1bacaec247.zip |
Add truth value testing to those lldb Python objects with the IsValid() method definitions.
object.__nonzero__(self) is called to implement truth value testing and the built-in operation bool(),
via a simple delegation to self.IsValid().
Change tests under python_api/lldbutil to utilize this mechanism.
llvm-svn: 131494
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions