[llvm-commits] [llvm-gcc-4.2] r95842 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Wed Feb 10 17:30:22 PST 2010
Author: dpatel
Date: Wed Feb 10 19:30:22 2010
New Revision: 95842
URL: http://llvm.org/viewvc/llvm-project?rev=95842&view=rev
Log:
Pointers do not need a 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=95842&r1=95841&r2=95842&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Wed Feb 10 19:30:22 2010
@@ -700,7 +700,9 @@
StringRef PName = FromTy.getName();
DIType PTy =
- DebugFactory.CreateDerivedType(Tag, findRegion(TYPE_CONTEXT(type)), PName,
+ DebugFactory.CreateDerivedType(Tag, findRegion(TYPE_CONTEXT(type)),
+ Tag == DW_TAG_pointer_type ?
+ StringRef() : PName,
getOrCreateCompileUnit(NULL),
0 /*line no*/,
NodeSizeInBits(type),
More information about the llvm-commits
mailing list