1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Use StringRef in TableGen (NFC)

llvm-svn: 283273
This commit is contained in:
Mehdi Amini 2016-10-04 23:47:33 +00:00
parent 461196daf3
commit fb6150f41d
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ static void dumpBits(raw_ostream &o, const BitsInit &bits) {
}
}
static BitsInit &getBitsField(const Record &def, const char *str) {
static BitsInit &getBitsField(const Record &def, StringRef str) {
BitsInit *bits = def.getValueAsBitsInit(str);
return *bits;
}

View File

@ -86,7 +86,7 @@ class SubtargetEmitter {
void EmitItineraries(raw_ostream &OS,
std::vector<std::vector<InstrItinerary> >
&ProcItinLists);
void EmitProcessorProp(raw_ostream &OS, const Record *R, const char *Name,
void EmitProcessorProp(raw_ostream &OS, const Record *R, StringRef Name,
char Separator);
void EmitProcessorResources(const CodeGenProcModel &ProcModel,
raw_ostream &OS);
@ -587,7 +587,7 @@ EmitItineraries(raw_ostream &OS,
// value defined in the C++ header. The Record is null if the processor does not
// define a model.
void SubtargetEmitter::EmitProcessorProp(raw_ostream &OS, const Record *R,
const char *Name, char Separator) {
StringRef Name, char Separator) {
OS << " ";
int V = R ? R->getValueAsInt(Name) : -1;
if (V >= 0)