diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-05-26 21:48:31 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-05-26 21:48:31 +0000 |
commit | 75719bf239dcb122f5bfa049e3103ea703e8262a (patch) | |
tree | 9e203cc3747650719a383c510673a2fcdd2efd3a /include/llvm/Type.h | |
parent | 9b41dcfa60b9fe436ee68bcd5a9e401f58aac872 (diff) |
Provide the correct patch for bug 345. The solution is to add a setTypeName
function to llvmAsmParser.y and then use it in the one place in the grammar
that needs it. Also had to make Type::setName public because setTypeName
needs it in order to retain compatibility with setValueName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 140b56445f..f35506b319 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -96,10 +96,6 @@ protected: Type(const std::string &Name, PrimitiveID id); virtual ~Type() {} - /// setName - Associate the name with this type in the symbol table, but don't - /// set the local name to be equal specified name. - /// - virtual void setName(const std::string &Name, SymbolTable *ST = 0); /// Types can become nonabstract later, if they are refined. /// @@ -131,6 +127,11 @@ public: /// @brief Debugging support: print to stderr virtual void dump() const; + /// setName - Associate the name with this type in the symbol table, but don't + /// set the local name to be equal specified name. + /// + virtual void setName(const std::string &Name, SymbolTable *ST = 0); + //===--------------------------------------------------------------------===// // Property accessors for dealing with types... Some of these virtual methods // are defined in private classes defined in Type.cpp for primitive types. |