cindex/Python: Update SourceLocation and SourceRange structures to match API changes.
Hurray for exposing implementation details!!!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94932 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index 7398cbb..e085871 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -100,7 +100,7 @@
"""
A SourceLocation represents a particular location within a source file.
"""
- _fields_ = [("ptr_data", c_void_p), ("int_data", c_uint)]
+ _fields_ = [("ptr_data", c_void_p * 2), ("int_data", c_uint)]
_data = None
def _get_instantiation(self):
@@ -141,7 +141,7 @@
code.
"""
_fields_ = [
- ("ptr_data", c_void_p),
+ ("ptr_data", c_void_p * 2),
("begin_int_data", c_uint),
("end_int_data", c_uint)]