[llvm-commits] [gcc-plugin] r76206 - /gcc-plugin/trunk/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Fri Jul 17 11:21:08 PDT 2009
Author: baldrick
Date: Fri Jul 17 13:21:07 2009
New Revision: 76206
URL: http://llvm.org/viewvc/llvm-project?rev=76206&view=rev
Log:
Comment out code that makes use of various Apple
extensions to gcc.
Modified:
gcc-plugin/trunk/llvm-debug.cpp
Modified: gcc-plugin/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-debug.cpp?rev=76206&r1=76205&r2=76206&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-debug.cpp (original)
+++ gcc-plugin/trunk/llvm-debug.cpp Fri Jul 17 13:21:07 2009
@@ -557,25 +557,25 @@
DW_TAG_union_type;
unsigned RunTimeLang = 0;
- if (TYPE_LANG_SPECIFIC (type)
- && lang_hooks.types.is_runtime_specific_type (type))
- {
- DICompileUnit CU = getOrCreateCompileUnit(main_input_filename);
- unsigned CULang = CU.getLanguage();
- switch (CULang) {
- case DW_LANG_ObjC_plus_plus :
- RunTimeLang = DW_LANG_ObjC_plus_plus;
- break;
- case DW_LANG_ObjC :
- RunTimeLang = DW_LANG_ObjC;
- break;
- case DW_LANG_C_plus_plus :
- RunTimeLang = DW_LANG_C_plus_plus;
- break;
- default:
- break;
- }
- }
+//TODO if (TYPE_LANG_SPECIFIC (type)
+//TODO && lang_hooks.types.is_runtime_specific_type (type))
+//TODO {
+//TODO DICompileUnit CU = getOrCreateCompileUnit(main_input_filename);
+//TODO unsigned CULang = CU.getLanguage();
+//TODO switch (CULang) {
+//TODO case DW_LANG_ObjC_plus_plus :
+//TODO RunTimeLang = DW_LANG_ObjC_plus_plus;
+//TODO break;
+//TODO case DW_LANG_ObjC :
+//TODO RunTimeLang = DW_LANG_ObjC;
+//TODO break;
+//TODO case DW_LANG_C_plus_plus :
+//TODO RunTimeLang = DW_LANG_C_plus_plus;
+//TODO break;
+//TODO default:
+//TODO break;
+//TODO }
+//TODO }
// Records and classes and unions can all be recursive. To handle them,
// we first generate a debug descriptor for the struct as a forward
@@ -909,8 +909,8 @@
// flag_objc_abi represents Objective-C runtime version number. It is zero
// for all other language.
unsigned ObjcRunTimeVer = 0;
- if (flag_objc_abi != 0 && flag_objc_abi != -1)
- ObjcRunTimeVer = flag_objc_abi;
+//TODO if (flag_objc_abi != 0 && flag_objc_abi != -1)
+//TODO ObjcRunTimeVer = flag_objc_abi;
DICompileUnit NewCU = DebugFactory.CreateCompileUnit(LangTag, FileName,
Directory,
version_string, isMain,
More information about the llvm-commits
mailing list