mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Add Init Accessors
Add a couple of utility functions to get at the name init and return the name init as a string. This will be used for paste functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1345,6 +1345,10 @@ public:
|
|||||||
RecordVal(const std::string &N, RecTy *T, unsigned P);
|
RecordVal(const std::string &N, RecTy *T, unsigned P);
|
||||||
|
|
||||||
const std::string &getName() const;
|
const std::string &getName() const;
|
||||||
|
const Init *getNameInit() const { return Name; }
|
||||||
|
std::string getNameInitAsString() const {
|
||||||
|
return getNameInit()->getAsUnquotedString();
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getPrefix() const { return Prefix; }
|
unsigned getPrefix() const { return Prefix; }
|
||||||
RecTy *getType() const { return Ty; }
|
RecTy *getType() const { return Ty; }
|
||||||
|
Reference in New Issue
Block a user