summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Dwarf.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-02-17 22:43:44 +0000
committerDevang Patel <dpatel@apple.com>2009-02-17 22:43:44 +0000
commit4d20395a5f00f05519caf4b0308a1925fe27ebf0 (patch)
tree8b598f0c2fe229d1b90a8cdef39d21f795ebc925 /llvm/lib/Support/Dwarf.cpp
parentbf30d545802efd9d3c581d24f25981393d575b2b (diff)
downloadbcm5719-llvm-4d20395a5f00f05519caf4b0308a1925fe27ebf0.tar.gz
bcm5719-llvm-4d20395a5f00f05519caf4b0308a1925fe27ebf0.zip
The debugger sometimes lookup dynamically in the runtime to find ivar info of any Objective-C classes. It would be very helpful to debugger if the compiler encodes runtime version number in DWARF.
Add support for two additional DWARF attributes to encode Objective-C runtime version number. llvm-svn: 64834
Diffstat (limited to 'llvm/lib/Support/Dwarf.cpp')
-rw-r--r--llvm/lib/Support/Dwarf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp
index 10a2c3c64f8..67bd1b44a1f 100644
--- a/llvm/lib/Support/Dwarf.cpp
+++ b/llvm/lib/Support/Dwarf.cpp
@@ -200,6 +200,8 @@ const char *AttributeString(unsigned Attribute) {
case DW_AT_hi_user: return "DW_AT_hi_user";
case DW_AT_APPLE_optimized: return "DW_AT_APPLE_optimized";
case DW_AT_APPLE_flags: return "DW_AT_APPLE_flags";
+ case DW_AT_APPLE_major_runtime_vers: return "DW_AT_APPLE_major_runtime_vers";
+ case DW_AT_APPLE_runtime_class: return "DW_AT_APPLE_runtime_class";
}
assert(0 && "Unknown Dwarf Attribute");
return "";
OpenPOWER on IntegriCloud