Skip to content

Commit 00c0e4c

Browse files
committed
Revert "demanger: Remove redundant qualifiers from context.cpp."
This reverts commit e24a565.
1 parent e24a565 commit 00c0e4c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/demangler/context.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ std::shared_ptr<NamedTypeNode> Context::getNamedType(const std::string &name, co
164164
void Context::addNamedType(
165165
const std::string &mangled,
166166
const Qualifiers &quals,
167-
const std::shared_ptr<NamedTypeNode> &type)
167+
const std::shared_ptr<retdec::demangler::borland::NamedTypeNode> &type)
168168
{
169169
assert(type && "violated precondition - type cannot be null");
170170

@@ -183,7 +183,7 @@ std::shared_ptr<Node> Context::getFunction(const std::string &mangled) const
183183

184184
void Context::addFunction(
185185
const std::string &mangled,
186-
const std::shared_ptr<Node> &function)
186+
const std::shared_ptr<retdec::demangler::borland::Node> &function)
187187
{
188188
assert(function && "violated precondition - function cannot be null");
189189

@@ -195,7 +195,7 @@ std::shared_ptr<NameNode> Context::getName(const std::string &name) const
195195
return retdec::utils::mapGetValueOrDefault(nameNodes, name);
196196
}
197197

198-
void Context::addName(const std::shared_ptr<NameNode> &name)
198+
void Context::addName(const std::shared_ptr<retdec::demangler::borland::NameNode> &name)
199199
{
200200
assert(name && "violated precondition - function cannot be null");
201201

@@ -204,14 +204,14 @@ void Context::addName(const std::shared_ptr<NameNode> &name)
204204
}
205205

206206
std::shared_ptr<NestedNameNode> Context::getNestedName(
207-
std::shared_ptr<Node> super,
208-
std::shared_ptr<Node> name)
207+
std::shared_ptr<retdec::demangler::borland::Node> super,
208+
std::shared_ptr<retdec::demangler::borland::Node> name)
209209
{
210210
auto key = std::make_tuple(super, name);
211211
return retdec::utils::mapGetValueOrDefault(nestedNameNodes, key);
212212
}
213213

214-
void Context::addNestedName(const std::shared_ptr<NestedNameNode> &name)
214+
void Context::addNestedName(const std::shared_ptr<retdec::demangler::borland::NestedNameNode> &name)
215215
{
216216
assert(name && "violated precondition - function cannot be null");
217217

@@ -220,15 +220,15 @@ void Context::addNestedName(const std::shared_ptr<NestedNameNode> &name)
220220
}
221221

222222
std::shared_ptr<ArrayNode> Context::getArray(
223-
std::shared_ptr<Node> pointee,
223+
std::shared_ptr<retdec::demangler::borland::Node> pointee,
224224
unsigned size,
225-
const Qualifiers &quals)
225+
const retdec::demangler::borland::Qualifiers &quals)
226226
{
227227
auto key = std::make_tuple(pointee, size, quals.isVolatile(), quals.isConst());
228228
return retdec::utils::mapGetValueOrDefault(arrayNodes, key);
229229
}
230230

231-
void Context::addArrayType(const std::shared_ptr<ArrayNode> &array) {
231+
void Context::addArrayType(const std::shared_ptr<retdec::demangler::borland::ArrayNode> &array) {
232232
assert(array && "violated precondition - array cannot be null");
233233

234234
auto pointee = array->pointee();

0 commit comments

Comments
 (0)