[llvm-commits] [llvm] r116061 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Devang Patel
dpatel at apple.com
Fri Oct 8 10:18:55 PDT 2010
Author: dpatel
Date: Fri Oct 8 12:18:54 2010
New Revision: 116061
URL: http://llvm.org/viewvc/llvm-project?rev=116061&view=rev
Log:
Line number 0 indicates there is no source line/file name info available for this construct.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=116061&r1=116060&r2=116061&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Fri Oct 8 12:18:54 2010
@@ -507,6 +507,8 @@
return;
unsigned Line = V.getLineNumber();
+ if (Line == 0)
+ return;
unsigned FileID = GetOrCreateSourceID(V.getContext().getDirectory(),
V.getContext().getFilename());
assert(FileID && "Invalid file id");
@@ -522,6 +524,8 @@
return;
unsigned Line = G.getLineNumber();
+ if (Line == 0)
+ return;
unsigned FileID = GetOrCreateSourceID(G.getContext().getDirectory(),
G.getContext().getFilename());
assert(FileID && "Invalid file id");
@@ -557,7 +561,7 @@
return;
unsigned Line = Ty.getLineNumber();
- if (!Ty.getContext().Verify())
+ if (Line == 0 || !Ty.getContext().Verify())
return;
unsigned FileID = GetOrCreateSourceID(Ty.getContext().getDirectory(),
Ty.getContext().getFilename());
@@ -574,6 +578,8 @@
return;
unsigned Line = NS.getLineNumber();
+ if (Line == 0)
+ return;
StringRef FN = NS.getFilename();
StringRef Dir = NS.getDirectory();
More information about the llvm-commits
mailing list