summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Support/Dwarf.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-12-30 13:13:10 +0000
committerdim <dim@FreeBSD.org>2015-12-30 13:13:10 +0000
commit9b5bf5c4f53d65d6a48722d7410ed7cb15f5ba3a (patch)
treeb466a4817f79516eb1df8eae92bccf62ecc84003 /contrib/llvm/lib/Support/Dwarf.cpp
parentf09a28d1de99fda4f5517fb12670fc36552f4927 (diff)
parente194cd6d03d91631334d9d5e55b506036f423cc8 (diff)
downloadFreeBSD-src-9b5bf5c4f53d65d6a48722d7410ed7cb15f5ba3a.zip
FreeBSD-src-9b5bf5c4f53d65d6a48722d7410ed7cb15f5ba3a.tar.gz
Update llvm to trunk r256633.
Diffstat (limited to 'contrib/llvm/lib/Support/Dwarf.cpp')
-rw-r--r--contrib/llvm/lib/Support/Dwarf.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Support/Dwarf.cpp b/contrib/llvm/lib/Support/Dwarf.cpp
index 13a4155..7d72256 100644
--- a/contrib/llvm/lib/Support/Dwarf.cpp
+++ b/contrib/llvm/lib/Support/Dwarf.cpp
@@ -177,6 +177,23 @@ const char *llvm::dwarf::AttributeString(unsigned Attribute) {
case DW_AT_MIPS_assumed_size: return "DW_AT_MIPS_assumed_size";
case DW_AT_lo_user: return "DW_AT_lo_user";
case DW_AT_hi_user: return "DW_AT_hi_user";
+ case DW_AT_BORLAND_property_read: return "DW_AT_BORLAND_property_read";
+ case DW_AT_BORLAND_property_write: return "DW_AT_BORLAND_property_write";
+ case DW_AT_BORLAND_property_implements: return "DW_AT_BORLAND_property_implements";
+ case DW_AT_BORLAND_property_index: return "DW_AT_BORLAND_property_index";
+ case DW_AT_BORLAND_property_default: return "DW_AT_BORLAND_property_default";
+ case DW_AT_BORLAND_Delphi_unit: return "DW_AT_BORLAND_Delphi_unit";
+ case DW_AT_BORLAND_Delphi_class: return "DW_AT_BORLAND_Delphi_class";
+ case DW_AT_BORLAND_Delphi_record: return "DW_AT_BORLAND_Delphi_record";
+ case DW_AT_BORLAND_Delphi_metaclass: return "DW_AT_BORLAND_Delphi_metaclass";
+ case DW_AT_BORLAND_Delphi_constructor: return "DW_AT_BORLAND_Delphi_constructor";
+ case DW_AT_BORLAND_Delphi_destructor: return "DW_AT_BORLAND_Delphi_destructor";
+ case DW_AT_BORLAND_Delphi_anonymous_method: return "DW_AT_BORLAND_Delphi_anonymous_method";
+ case DW_AT_BORLAND_Delphi_interface: return "DW_AT_BORLAND_Delphi_interface";
+ case DW_AT_BORLAND_Delphi_ABI: return "DW_AT_BORLAND_Delphi_ABI";
+ case DW_AT_BORLAND_Delphi_return: return "DW_AT_BORLAND_Delphi_return";
+ case DW_AT_BORLAND_Delphi_frameptr: return "DW_AT_BORLAND_Delphi_frameptr";
+ case DW_AT_BORLAND_closure: return "DW_AT_BORLAND_closure";
case DW_AT_APPLE_optimized: return "DW_AT_APPLE_optimized";
case DW_AT_APPLE_flags: return "DW_AT_APPLE_flags";
case DW_AT_APPLE_isa: return "DW_AT_APPLE_isa";
@@ -201,6 +218,7 @@ const char *llvm::dwarf::AttributeString(unsigned Attribute) {
case DW_AT_GNU_addr_base: return "DW_AT_GNU_addr_base";
case DW_AT_GNU_pubnames: return "DW_AT_GNU_pubnames";
case DW_AT_GNU_pubtypes: return "DW_AT_GNU_pubtypes";
+ case DW_AT_GNU_discriminator: return "DW_AT_GNU_discriminator";
}
return nullptr;
}
@@ -373,6 +391,14 @@ const char *llvm::dwarf::ConventionString(unsigned Convention) {
case DW_CC_nocall: return "DW_CC_nocall";
case DW_CC_lo_user: return "DW_CC_lo_user";
case DW_CC_hi_user: return "DW_CC_hi_user";
+ case DW_CC_GNU_borland_fastcall_i386: return "DW_CC_GNU_borland_fastcall_i386";
+ case DW_CC_BORLAND_safecall: return "DW_CC_BORLAND_safecall";
+ case DW_CC_BORLAND_stdcall: return "DW_CC_BORLAND_stdcall";
+ case DW_CC_BORLAND_pascal: return "DW_CC_BORLAND_pascal";
+ case DW_CC_BORLAND_msfastcall: return "DW_CC_BORLAND_msfastcall";
+ case DW_CC_BORLAND_msreturn: return "DW_CC_BORLAND_msreturn";
+ case DW_CC_BORLAND_thiscall: return "DW_CC_BORLAND_thiscall";
+ case DW_CC_BORLAND_fastcall: return "DW_CC_BORLAND_fastcall";
}
return nullptr;
}
@@ -442,10 +468,21 @@ const char *llvm::dwarf::MacinfoString(unsigned Encoding) {
case DW_MACINFO_start_file: return "DW_MACINFO_start_file";
case DW_MACINFO_end_file: return "DW_MACINFO_end_file";
case DW_MACINFO_vendor_ext: return "DW_MACINFO_vendor_ext";
+ case DW_MACINFO_invalid: return "DW_MACINFO_invalid";
}
return nullptr;
}
+unsigned llvm::dwarf::getMacinfo(StringRef MacinfoString) {
+ return StringSwitch<unsigned>(MacinfoString)
+ .Case("DW_MACINFO_define", DW_MACINFO_define)
+ .Case("DW_MACINFO_undef", DW_MACINFO_undef)
+ .Case("DW_MACINFO_start_file", DW_MACINFO_start_file)
+ .Case("DW_MACINFO_end_file", DW_MACINFO_end_file)
+ .Case("DW_MACINFO_vendor_ext", DW_MACINFO_vendor_ext)
+ .Default(DW_MACINFO_invalid);
+}
+
const char *llvm::dwarf::CallFrameString(unsigned Encoding) {
switch (Encoding) {
case DW_CFA_nop: return "DW_CFA_nop";
OpenPOWER on IntegriCloud