[llvm-commits] [llvm-gcc-4.2] r80281 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Thu Aug 27 13:57:00 PDT 2009
Author: dpatel
Date: Thu Aug 27 15:57:00 2009
New Revision: 80281
URL: http://llvm.org/viewvc/llvm-project?rev=80281&view=rev
Log:
There is not any need to eagerly walk all type variants here.
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=80281&r1=80280&r2=80281&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Thu Aug 27 15:57:00 2009
@@ -772,12 +772,8 @@
return Slot;
DIType MainTy;
- if (type != TYPE_MAIN_VARIANT(type)) {
- if (TYPE_NEXT_VARIANT(type) && type != TYPE_NEXT_VARIANT(type))
- MainTy = getOrCreateType(TYPE_NEXT_VARIANT(type));
- else if (TYPE_MAIN_VARIANT(type))
- MainTy = getOrCreateType(TYPE_MAIN_VARIANT(type));
- }
+ if (type != TYPE_MAIN_VARIANT(type) && TYPE_MAIN_VARIANT(type))
+ MainTy = getOrCreateType(TYPE_MAIN_VARIANT(type));
DIType Ty = createVariantType(type, MainTy);
if (!Ty.isNull())
More information about the llvm-commits
mailing list