PTX: Fix a couple of lint violations

llvm-svn: 126936
This commit is contained in:
Justin Holewinski 2011-03-03 13:34:29 +00:00
parent df829ddcb7
commit 86e749c620
4 changed files with 8 additions and 4 deletions

View File

@ -170,7 +170,8 @@ void PTXAsmPrinter::EmitStartOfAsmFile(Module &M)
OutStreamer.EmitRawText(Twine("\t.version " + ST.getPTXVersionString()));
OutStreamer.EmitRawText(Twine("\t.target " + ST.getTargetString() +
(ST.supportsDouble() ? "" : ", map_f64_to_f32")));
(ST.supportsDouble() ? ""
: ", map_f64_to_f32")));
OutStreamer.AddBlankLine();
// declare global variables

View File

@ -27,7 +27,8 @@ protected:
public:
explicit PTXFrameLowering(const PTXSubtarget &sti)
: TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 2, -2), STI(sti) {
: TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 2, -2),
STI(sti) {
}
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into

View File

@ -42,7 +42,8 @@ void PTXInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
for (int i = 0, e = sizeof(map)/sizeof(map[0]); i != e; ++ i) {
if (map[i].cls->contains(DstReg, SrcReg)) {
BuildMI(MBB, I, DL,
get(map[i].opcode), DstReg).addReg(SrcReg, getKillRegState(KillSrc));
get(map[i].opcode), DstReg).addReg(SrcReg,
Getkillregstate(KillSrc));
return;
}
}

View File

@ -423,7 +423,8 @@ void PTXMCAsmStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue,
MCStreamer::EmitFill(NumBytes, FillValue, AddrSpace);
}
void PTXMCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
void PTXMCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment,
int64_t Value,
unsigned ValueSize,
unsigned MaxBytesToEmit) {
// Some assemblers don't support non-power of two alignments, so we always