mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Constants never get names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18221ed507
commit
ffdb920ec2
@ -31,11 +31,8 @@ ConstantBool *ConstantBool::False = new ConstantBool(false);
|
|||||||
// Constant Class
|
// Constant Class
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
// Specialize setName to take care of symbol table majik
|
void Constant::setName(const std::string &Name) {
|
||||||
void Constant::setName(const std::string &Name, SymbolTable *ST) {
|
// Constants can't take names.
|
||||||
assert(ST && "Type::setName - Must provide symbol table argument!");
|
|
||||||
|
|
||||||
if (Name.size()) ST->insert(Name, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Constant::destroyConstantImpl() {
|
void Constant::destroyConstantImpl() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user