diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 02:56:57 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 02:56:57 +0000 |
commit | 117296c0a00860072854dd3fee8cd710b7955cf7 (patch) | |
tree | 8607cdf84f087928e123b023d511a39d99e088e6 /llvm/lib/Target/Sparc | |
parent | 86eeda8e20d5aa5a5622a487c56364b4b26c6f3a (diff) | |
download | bcm5719-llvm-117296c0a00860072854dd3fee8cd710b7955cf7.tar.gz bcm5719-llvm-117296c0a00860072854dd3fee8cd710b7955cf7.zip |
Use StringRef in Pass/PassManager APIs (NFC)
llvm-svn: 283004
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r-- | llvm/lib/Target/Sparc/DelaySlotFiller.cpp | 4 | ||||
-rwxr-xr-x | llvm/lib/Target/Sparc/LeonPasses.h | 8 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcAsmPrinter.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp | 2 |
4 files changed, 7 insertions, 11 deletions
diff --git a/llvm/lib/Target/Sparc/DelaySlotFiller.cpp b/llvm/lib/Target/Sparc/DelaySlotFiller.cpp index 4b55c1ce989..6f9cc314e37 100644 --- a/llvm/lib/Target/Sparc/DelaySlotFiller.cpp +++ b/llvm/lib/Target/Sparc/DelaySlotFiller.cpp @@ -43,9 +43,7 @@ namespace { static char ID; Filler() : MachineFunctionPass(ID) {} - const char *getPassName() const override { - return "SPARC Delay Slot Filler"; - } + StringRef getPassName() const override { return "SPARC Delay Slot Filler"; } bool runOnMachineBasicBlock(MachineBasicBlock &MBB); bool runOnMachineFunction(MachineFunction &F) override { diff --git a/llvm/lib/Target/Sparc/LeonPasses.h b/llvm/lib/Target/Sparc/LeonPasses.h index a544e322fcb..c3ff8690329 100755 --- a/llvm/lib/Target/Sparc/LeonPasses.h +++ b/llvm/lib/Target/Sparc/LeonPasses.h @@ -51,7 +51,7 @@ public: InsertNOPLoad(TargetMachine &tm); bool runOnMachineFunction(MachineFunction &MF) override; - const char *getPassName() const override { + StringRef getPassName() const override { return "InsertNOPLoad: Erratum Fix LBR35: insert a NOP instruction after " "every single-cycle load instruction when the next instruction is " "another load/store instruction"; @@ -65,7 +65,7 @@ public: FixFSMULD(TargetMachine &tm); bool runOnMachineFunction(MachineFunction &MF) override; - const char *getPassName() const override { + StringRef getPassName() const override { return "FixFSMULD: Erratum Fix LBR31: do not select FSMULD"; } }; @@ -77,7 +77,7 @@ public: ReplaceFMULS(TargetMachine &tm); bool runOnMachineFunction(MachineFunction &MF) override; - const char *getPassName() const override { + StringRef getPassName() const override { return "ReplaceFMULS: Erratum Fix LBR32: replace FMULS instruction with a " "routine using conversions/double precision operations to replace " "FMULS"; @@ -91,7 +91,7 @@ public: FixAllFDIVSQRT(TargetMachine &tm); bool runOnMachineFunction(MachineFunction &MF) override; - const char *getPassName() const override { + StringRef getPassName() const override { return "FixAllFDIVSQRT: Erratum Fix LBR34: fix FDIVS/FDIVD/FSQRTS/FSQRTD " "instructions with NOPs and floating-point store"; } diff --git a/llvm/lib/Target/Sparc/SparcAsmPrinter.cpp b/llvm/lib/Target/Sparc/SparcAsmPrinter.cpp index c068440f7c0..d361d858ba1 100644 --- a/llvm/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/llvm/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -46,9 +46,7 @@ namespace { std::unique_ptr<MCStreamer> Streamer) : AsmPrinter(TM, std::move(Streamer)) {} - const char *getPassName() const override { - return "Sparc Assembly Printer"; - } + StringRef getPassName() const override { return "Sparc Assembly Printer"; } void printOperand(const MachineInstr *MI, int opNum, raw_ostream &OS); void printMemOperand(const MachineInstr *MI, int opNum, raw_ostream &OS, diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 07948a33cde..77d44ceba6f 100644 --- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -53,7 +53,7 @@ public: unsigned ConstraintID, std::vector<SDValue> &OutOps) override; - const char *getPassName() const override { + StringRef getPassName() const override { return "SPARC DAG->DAG Pattern Instruction Selection"; } |