mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 04:41:34 +00:00
Add Name Init Accessors
Add a utility to get the name init and get the string representation of the name. This will be used for paste functionality. llvm-svn: 142495
This commit is contained in:
parent
f6a28e6e87
commit
557cd75d47
@ -1404,6 +1404,13 @@ public:
|
||||
unsigned getID() const { return ID; }
|
||||
|
||||
const std::string &getName() const;
|
||||
Init *getNameInit() const {
|
||||
return Name;
|
||||
}
|
||||
const std::string getNameInitAsString() const {
|
||||
return getNameInit()->getAsUnquotedString();
|
||||
}
|
||||
|
||||
void setName(Init *Name); // Also updates RecordKeeper.
|
||||
void setName(const std::string &Name); // Also updates RecordKeeper.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user