summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-05-17 22:14:39 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-05-17 22:14:39 +0000
commit112f5696fb10dfa8c3d6a0c7e75f5b1bacaec247 (patch)
tree9e89c82994403e84957f4e1ca562e0f79bd2aea7 /clang/lib/CodeGen/CodeGenModule.cpp
parent5bd18b6638215f05c5a0a9dddfd0d595573e8f7b (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud