mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Use StringRef in TableGen (NFC)
llvm-svn: 283273
This commit is contained in:
parent
461196daf3
commit
fb6150f41d
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user