diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-23 22:33:47 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-23 22:33:47 +0000 |
commit | ccfacfff9a707e283e208a3d5295557cc060ac36 (patch) | |
tree | e711de52ac95930fe24aefb4fe27dee63aac9b2f /llvm/lib/Support/Dwarf.cpp | |
parent | 832959536a6471eef3bee0bd4774b49ac76d46eb (diff) | |
download | bcm5719-llvm-ccfacfff9a707e283e208a3d5295557cc060ac36.tar.gz bcm5719-llvm-ccfacfff9a707e283e208a3d5295557cc060ac36.zip |
Introduce two DWARF attribute extentions DW_AT_APPLE_optimized, DW_AT_APPLE_flags.
DW_AT_APPLE_optimized flag is set when a compile_unit is optimized. The debugger takes advantage of this information some way.
DW_AT_APPLE_flags encodes command line options when certain env. variable is set. This is used by build engineers to track various gcc command lines used by by a project, irrespective of whether the project used makefile, Xcode or something else.
llvm-gcc patch is next.
llvm-svn: 62888
Diffstat (limited to 'llvm/lib/Support/Dwarf.cpp')
-rw-r--r-- | llvm/lib/Support/Dwarf.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp index b7cf3b977ab..10a2c3c64f8 100644 --- a/llvm/lib/Support/Dwarf.cpp +++ b/llvm/lib/Support/Dwarf.cpp @@ -198,6 +198,8 @@ const char *AttributeString(unsigned Attribute) { case DW_AT_GNU_vector: return "DW_AT_GNU_vector"; case DW_AT_lo_user: return "DW_AT_lo_user"; 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"; } assert(0 && "Unknown Dwarf Attribute"); return ""; |