[llvm-commits] [llvm-gcc-4.2] r71249 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Fri May 8 13:20:58 PDT 2009
Author: void
Date: Fri May 8 15:20:57 2009
New Revision: 71249
URL: http://llvm.org/viewvc/llvm-project?rev=71249&view=rev
Log:
Conditionalize checking for ObjC prefix on whether this is an ObjC program.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=71249&r1=71248&r2=71249&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Fri May 8 15:20:57 2009
@@ -1395,8 +1395,9 @@
const char LPrefix[] = "\01L_OBJC_";
const char lPrefix[] = "\01l_OBJC_";
- if (strncmp(Name, LPrefix, sizeof(LPrefix) - 1) != 0 &&
- strncmp(Name, lPrefix, sizeof(lPrefix) - 1) != 0)
+ if (flag_objc_abi == -1 || flag_objc_abi == 0 ||
+ (strncmp(Name, LPrefix, sizeof(LPrefix) - 1) != 0 &&
+ strncmp(Name, lPrefix, sizeof(lPrefix) - 1) != 0))
TheDebugInfo->EmitGlobalVariable(GV, decl);
}
More information about the llvm-commits
mailing list