[llvm-commits] [llvm-gcc-4.2] r93950 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Tue Jan 19 15:44:00 PST 2010
Author: dpatel
Date: Tue Jan 19 17:44:00 2010
New Revision: 93950
URL: http://llvm.org/viewvc/llvm-project?rev=93950&view=rev
Log:
Emitting linkage name for global variable confuses gdb. The debugger can find and print variable info based on its regular name.
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=93950&r1=93949&r2=93950&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Tue Jan 19 17:44:00 2010
@@ -503,8 +503,7 @@
}
DebugFactory.CreateGlobalVariable(findRegion(DECL_CONTEXT(decl)),
- DispName, DispName,
- getLinkageName(decl),
+ DispName, DispName, StringRef(),
getOrCreateCompileUnit(Loc.file), Loc.line,
TyD, GV->hasInternalLinkage(),
true/*definition*/, GV);
More information about the llvm-commits
mailing list