mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
Add a new Value::getNameStr method, which is preferred over getName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -87,7 +87,8 @@ public:
|
|||||||
|
|
||||||
// All values can potentially be named...
|
// All values can potentially be named...
|
||||||
inline bool hasName() const { return Name != 0; }
|
inline bool hasName() const { return Name != 0; }
|
||||||
std::string getName() const;
|
std::string getName() const { return getNameStr(); }
|
||||||
|
std::string getNameStr() const;
|
||||||
ValueName *getValueName() const { return Name; }
|
ValueName *getValueName() const { return Name; }
|
||||||
|
|
||||||
void setName(const std::string &name);
|
void setName(const std::string &name);
|
||||||
|
@ -112,7 +112,7 @@ static bool getSymTab(Value *V, ValueSymbolTable *&ST) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Value::getName() const {
|
std::string Value::getNameStr() const {
|
||||||
if (Name == 0) return "";
|
if (Name == 0) return "";
|
||||||
return std::string(Name->getKeyData(),
|
return std::string(Name->getKeyData(),
|
||||||
Name->getKeyData()+Name->getKeyLength());
|
Name->getKeyData()+Name->getKeyLength());
|
||||||
|
Reference in New Issue
Block a user