mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de703e25fe
commit
d7f8941e77
@ -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…
Reference in New Issue
Block a user