diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 9 | ||||
-rw-r--r-- | include/llvm/Support/Dwarf.h | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 1aa40e7..91e64d8 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -118,9 +118,11 @@ namespace llvm { /// code generator accepts maximum one main compile unit per module. If a /// module does not contain any main compile unit then the code generator /// will emit multiple compile units in the output object file. + bool isMain() const { return getUnsignedField(6); } bool isOptimized() const { return getUnsignedField(7); } std::string getFlags() const { return getStringField(8); } + unsigned getRunTimeVersion() const { return getUnsignedField(9); } /// Verify - Verify that a compile unit is well formed. bool Verify() const; @@ -231,6 +233,7 @@ namespace llvm { public: explicit DICompositeType(GlobalVariable *GV); DIArray getTypeArray() const { return getFieldAs<DIArray>(10); } + unsigned getRunTimeLang() const { return getUnsignedField(11); } /// Verify - Verify that a composite type descriptor is well formed. bool Verify() const; @@ -381,7 +384,8 @@ namespace llvm { const std::string &Producer, bool isMain = false, bool isOptimized = false, - const char *Flags = ""); + const char *Flags = "", + unsigned RunTimeVer = 0); /// CreateEnumerator - Create a single enumerator value. DIEnumerator CreateEnumerator(const std::string &Name, uint64_t Val); @@ -412,7 +416,8 @@ namespace llvm { uint64_t AlignInBits, uint64_t OffsetInBits, unsigned Flags, DIType DerivedFrom, - DIArray Elements); + DIArray Elements, + unsigned RunTimeLang = 0); /// CreateSubprogram - Create a new descriptor for the specified subprogram. /// See comments in DISubprogram for descriptions of these fields. diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index c242743..7d230a2 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -225,6 +225,8 @@ enum dwarf_constants { // Apple extensions. DW_AT_APPLE_optimized = 0x3fe1, DW_AT_APPLE_flags = 0x3fe2, + DW_AT_APPLE_major_runtime_vers = 0x3fe5, + DW_AT_APPLE_runtime_class = 0x3fe6, // Attribute form encodings DW_FORM_addr = 0x01, |