[cfe-commits] r70266 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Mon Apr 27 15:40:36 PDT 2009
Author: dpatel
Date: Mon Apr 27 17:40:36 2009
New Revision: 70266
URL: http://llvm.org/viewvc/llvm-project?rev=70266&view=rev
Log:
While generating debug info ignore unnamed fields.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=70266&r1=70265&r2=70266&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Apr 27 17:40:36 2009
@@ -304,6 +304,10 @@
std::string FieldName = Field->getNameAsString();
+ // Ignore unnamed fields.
+ if (FieldName.empty())
+ continue;
+
// Get the location for the field.
SourceLocation FieldDefLoc = Field->getLocation();
llvm::DICompileUnit FieldDefUnit = getOrCreateCompileUnit(FieldDefLoc);
@@ -414,6 +418,10 @@
std::string FieldName = Field->getNameAsString();
+ // Ignore unnamed fields.
+ if (FieldName.empty())
+ continue;
+
// Get the location for the field.
SourceLocation FieldDefLoc = Field->getLocation();
llvm::DICompileUnit FieldDefUnit = getOrCreateCompileUnit(FieldDefLoc);
More information about the cfe-commits
mailing list