[llvm-commits] [llvm] r62828 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Devang Patel
dpatel at apple.com
Thu Jan 22 17:25:59 PST 2009
Author: dpatel
Date: Thu Jan 22 19:25:58 2009
New Revision: 62828
URL: http://llvm.org/viewvc/llvm-project?rev=62828&view=rev
Log:
Code did not follow associated comment. not a good idea.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=62828&r1=62827&r2=62828&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Thu Jan 22 19:25:58 2009
@@ -1578,7 +1578,7 @@
void AddSourceLine(DIE *Die, const DIGlobal *G) {
unsigned FileID = 0;
unsigned Line = G->getLineNumber();
- if (G->getVersion() < LLVMDebugVersion6) {
+ if (G->getVersion() <= LLVMDebugVersion6) {
// Version6 or earlier. Use compile unit info to get file id.
CompileUnit *Unit = FindCompileUnit(G->getCompileUnit());
FileID = Unit->getID();
More information about the llvm-commits
mailing list