From a880b1e4f308b64f45997f6eb5f8cd64a88d7a96 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 23 Jan 2009 22:33:47 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62888 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Dwarf.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Support/Dwarf.cpp') diff --git a/lib/Support/Dwarf.cpp b/lib/Support/Dwarf.cpp index b7cf3b977a..10a2c3c64f 100644 --- a/lib/Support/Dwarf.cpp +++ b/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 ""; -- cgit v1.2.3