summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/RISCV/RISCVSubtarget.h
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2019-02-19 14:42:00 +0000
committerAlex Bradbury <asb@lowrisc.org>2019-02-19 14:42:00 +0000
commit6aae216109544a9d87b1332642632292595ca7a6 (patch)
treeacbf151e86c2568b8c184c8da33b820964d6a151 /llvm/lib/Target/RISCV/RISCVSubtarget.h
parentaa735de65ffc646c1752050abc7feb1817fdcb21 (diff)
downloadbcm5719-llvm-6aae216109544a9d87b1332642632292595ca7a6.tar.gz
bcm5719-llvm-6aae216109544a9d87b1332642632292595ca7a6.zip
[RISCV][NFC] Move some std::string to StringRef
llvm-svn: 354333
Diffstat (limited to 'llvm/lib/Target/RISCV/RISCVSubtarget.h')
-rw-r--r--llvm/lib/Target/RISCV/RISCVSubtarget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.h b/llvm/lib/Target/RISCV/RISCVSubtarget.h
index 66c77301037..0373d542d4b 100644
--- a/llvm/lib/Target/RISCV/RISCVSubtarget.h
+++ b/llvm/lib/Target/RISCV/RISCVSubtarget.h
@@ -51,8 +51,8 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
public:
// Initializes the data members to match that of the specified triple.
- RISCVSubtarget(const Triple &TT, const std::string &CPU,
- const std::string &FS, const TargetMachine &TM);
+ RISCVSubtarget(const Triple &TT, StringRef CPU, StringRef FS,
+ const TargetMachine &TM);
// Parses features string setting specified subtarget options. The
// definition of this function is auto-generated by tblgen.
OpenPOWER on IntegriCloud