[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 18 21:26:01 PST 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.58 -> 1.59
---
Log message:
Function info descriptors should have internal linkage, not external, otherwise
inline functions will conflict with each other.
---
Diffs of the changes: (+2 -4)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.58 llvm-gcc/gcc/llvm-expand.c:1.59
--- llvm-gcc/gcc/llvm-expand.c:1.58 Thu Nov 18 22:49:45 2004
+++ llvm-gcc/gcc/llvm-expand.c Thu Nov 18 23:25:46 2004
@@ -7390,8 +7390,6 @@
* debug intrinsics to refer to that function.
*/
-static llvm_global *dbg_func_info_global;
-
static void llvm_emit_dbg_function_info(llvm_function *Fn) {
char *func_name = G2V(Fn)->Name;
char *gFuncName = 0;
@@ -7404,7 +7402,7 @@
llvm_basicblock *EntryBB = llvm_ilist_front(llvm_basicblock, Fn->BasicBlocks);
llvm_instruction *InsertPoint = llvm_ilist_begin(EntryBB->Instructions);
llvm_instruction *End = llvm_ilist_end(EntryBB->Instructions);
-
+ llvm_global *dbg_func_info_global;
funcNameStr = EmitGlobalString(func_name);
Elements = (llvm_value**) xcalloc(7, sizeof(llvm_value*));
@@ -7426,7 +7424,7 @@
dbg_func_info_global = llvm_global_new(dbGlobalTy, gFuncName);
free(gFuncName);
- dbg_func_info_global->Linkage = L_External;
+ dbg_func_info_global->Linkage = L_Internal;
dbg_func_info_global->Init = CA;
llvm_ilist_push_back(llvm_global, TheProgram.Globals, dbg_func_info_global);
More information about the llvm-commits
mailing list