Skip to content

Commit cd25a7f

Browse files
Jesse-Millwoodarunthomas
authored andcommitted
SSITH: Fixed compiler errors
1 parent d5e1f3d commit cd25a7f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ const MCExpr *TargetLoweringObjectFileCOFF::lowerRelativeReference(
15991599
static std::string APIntToHexString(const APInt &AI) {
16001600
unsigned Width = (AI.getBitWidth() / 8) * 2;
16011601
std::string HexString = AI.toString(16, /*Signed=*/false);
1602-
transform(HexString.begin(), HexString.end(), HexString.begin(), tolower);
1602+
transform(HexString, HexString.begin(), ::tolower);
16031603
unsigned Size = HexString.size();
16041604
assert(Width >= Size && "hex string is too large!");
16051605
HexString.insert(HexString.begin(), Width - Size, '0');

llvm/lib/Target/RISCV/ISPAsmPrinter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "llvm/MC/MCContext.h"
1818
#include "llvm/MC/MCStreamer.h"
1919
#include "llvm/Support/TargetRegistry.h"
20+
#include "TargetInfo/RISCVTargetInfo.h"
2021

2122
#include "ISP.h"
2223

llvm/lib/Target/RISCV/RISCVAsmPrinter.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717
#include "llvm/CodeGen/MachineInstr.h"
1818
#include "llvm/MC/MCInst.h"
1919
#include "llvm/CodeGen/AsmPrinter.h"
20+
#include "llvm/ADT/Statistic.h"
2021

2122
#define DEBUG_TYPE "asm-printer"
2223

2324
using namespace llvm;
2425

26+
STATISTIC(RISCVNumInstrsCompressed,
27+
"Number of RISC-V Compressed instructions emitted");
28+
2529
class RISCVAsmPrinter : public AsmPrinter {
2630
public:
2731
explicit RISCVAsmPrinter(TargetMachine &TM,

0 commit comments

Comments
 (0)