[DebugInfo] Drop unneeded format() calls (fix -Wformat-security) after 3b7ec64d597487...
authorFangrui Song <maskray@google.com>
Tue, 9 Jun 2020 16:55:25 +0000 (09:55 -0700)
committerFangrui Song <maskray@google.com>
Tue, 9 Jun 2020 16:56:13 +0000 (09:56 -0700)
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp

index 4b449a5..be4c5d3 100644 (file)
@@ -1048,7 +1048,7 @@ Error DWARFDebugLine::LineTable::parse(
           uint8_t OpcodeLength = Prologue.StandardOpcodeLengths[Opcode - 1];
           if (OpcodeLength != 0) {
             if (Verbose)
-              *OS << format(" (operands: ");
+              *OS << " (operands: ";
             for (uint8_t I = 0; I < OpcodeLength; ++I) {
               uint64_t Value = TableData.getULEB128(OffsetPtr);
               if (Verbose) {
@@ -1058,7 +1058,7 @@ Error DWARFDebugLine::LineTable::parse(
               }
             }
             if (Verbose)
-              *OS << format(")");
+              *OS << ')';
           }
         }
         break;