[llvm-commits] [llvm-gcc-4.2] r64976 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Wed Feb 18 15:01:49 PST 2009
Author: dpatel
Date: Wed Feb 18 17:01:48 2009
New Revision: 64976
URL: http://llvm.org/viewvc/llvm-project?rev=64976&view=rev
Log:
Fix Objective-C runtime version encoding. flag_objc_abi is initiailzed as -1; where -1 is not yet set to any value.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=64976&r1=64975&r2=64976&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Wed Feb 18 17:01:48 2009
@@ -871,11 +871,14 @@
// 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;
DICompileUnit NewCU = DebugFactory.CreateCompileUnit(LangTag, FileName,
Directory,
version_string, isMain,
optimize, Flags,
- flag_objc_abi);
+ ObjcRunTimeVer);
CU = NewCU.getGV();
return NewCU;
}
More information about the llvm-commits
mailing list