diff options
| author | Devang Patel <dpatel@apple.com> | 2008-11-21 20:00:59 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-11-21 20:00:59 +0000 |
| commit | cb181bb203085f863ee89eabdb75eb0778c5e2f5 (patch) | |
| tree | 473ac5ebf743880303bd928f5be2dd2123b2bf7c /llvm/lib/Archive/ArchiveWriter.cpp | |
| parent | 72d9912b08c5492cc2eaff9a666e45718f1dea07 (diff) | |
| download | bcm5719-llvm-cb181bb203085f863ee89eabdb75eb0778c5e2f5.tar.gz bcm5719-llvm-cb181bb203085f863ee89eabdb75eb0778c5e2f5.zip | |
Silence unused variable warnings.
llvm-svn: 59841
Diffstat (limited to 'llvm/lib/Archive/ArchiveWriter.cpp')
| -rw-r--r-- | llvm/lib/Archive/ArchiveWriter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Archive/ArchiveWriter.cpp b/llvm/lib/Archive/ArchiveWriter.cpp index 2269464c6c5..336a2bdc658 100644 --- a/llvm/lib/Archive/ArchiveWriter.cpp +++ b/llvm/lib/Archive/ArchiveWriter.cpp @@ -306,8 +306,10 @@ Archive::writeSymbolTable(std::ofstream& ARFile) { // Write the header ARFile.write((char*)&Hdr, sizeof(Hdr)); +#ifndef NDEBUG // Save the starting position of the symbol tables data content. unsigned startpos = ARFile.tellp(); +#endif // Write out the symbols sequentially for ( Archive::SymTabType::iterator I = symTab.begin(), E = symTab.end(); @@ -321,8 +323,10 @@ Archive::writeSymbolTable(std::ofstream& ARFile) { ARFile.write(I->first.data(), I->first.length()); } +#ifndef NDEBUG // Now that we're done with the symbol table, get the ending file position unsigned endpos = ARFile.tellp(); +#endif // Make sure that the amount we wrote is what we pre-computed. This is // critical for file integrity purposes. |

