[llvm-commits] [llvm] r39775 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Duncan Sands
baldrick at free.fr
Thu Jul 12 06:51:40 PDT 2007
Author: baldrick
Date: Thu Jul 12 08:51:39 2007
New Revision: 39775
URL: http://llvm.org/viewvc/llvm-project?rev=39775&view=rev
Log:
The type ids making up a filter are unsigned, and
should be output as unsigned values. Checked against
gcc.
Modified:
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=39775&r1=39774&r2=39775&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Thu Jul 12 08:51:39 2007
@@ -3002,7 +3002,7 @@
for(std::vector<unsigned>::const_iterator I = FilterIds.begin(),
E = FilterIds.end(); I != E; ++I) {
FilterOffsets.push_back(Offset);
- Offset -= Asm->SizeSLEB128(*I);
+ Offset -= Asm->SizeULEB128(*I);
}
// Compute sizes for exception table.
@@ -3191,7 +3191,7 @@
// Emit the filter typeids.
for (unsigned j = 0, M = FilterIds.size(); j < M; ++j) {
unsigned TypeID = FilterIds[j];
- Asm->EmitSLEB128Bytes(TypeID);
+ Asm->EmitULEB128Bytes(TypeID);
Asm->EOL("Filter TypeInfo index");
}
More information about the llvm-commits
mailing list