[llvm-commits] [llvm-gcc-4.2] r63216 - in /llvm-gcc-4.2/branches/Apple/Dib/gcc: llvm-backend.cpp llvm-debug.cpp
Devang Patel
dpatel at apple.com
Wed Jan 28 10:46:54 PST 2009
Author: dpatel
Date: Wed Jan 28 12:46:54 2009
New Revision: 63216
URL: http://llvm.org/viewvc/llvm-project?rev=63216&view=rev
Log:
Undo following patch for now.
----
Set DW_AT_APPLE_optimized and DW_AT_APPLE_flags attribute while building
DICompileUnit.
Right now, llvm-gcc does not emit debug info when optimization is ON. However,
emit llvm.dbg.compile_unit and preserve it even when optimization is ON. This
allows DW_AT_APPLE_flags to find its way in final binary.
----
Modified:
llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp?rev=63216&r1=63215&r2=63216&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp Wed Jan 28 12:46:54 2009
@@ -592,13 +592,6 @@
writeLLVMValues();
}
- if (!flag_pch_file
- && optimize && debug_info_level > DINFO_LEVEL_NONE && !TheDebugInfo) {
- DebugInfo DI(TheModule);
- DICompileUnit CU = DI.createCompileUnit(main_input_filename);
- AttributeUsedGlobals.insert(CU.getGV());
- }
-
// Add an llvm.global_ctors global if needed.
if (!StaticCtors.empty())
CreateStructorsList(StaticCtors, "llvm.global_ctors");
Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp?rev=63216&r1=63215&r2=63216&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-debug.cpp Wed Jan 28 12:46:54 2009
@@ -828,15 +828,8 @@
else
LangTag = DW_LANG_C89;
- const char *Flags = "";
- // Do this only when RC_DEBUG_OPTIONS environment variable is set to
- // a nonempty string. This is intended only for internal Apple use.
- char * debugopt = getenv("RC_DEBUG_OPTIONS");
- if (debugopt && debugopt[0])
- Flags = get_arguments();
-
return DebugFactory.CreateCompileUnit(LangTag, FileName, Directory,
- version_string, optimize, Flags);
+ version_string);
}
/* LLVM LOCAL end (ENTIRE FILE!) */
More information about the llvm-commits
mailing list