mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
bug 122:
- Correct isa<Constant> for GlobalValue subclass - Fix some tabs and indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f7eea5d04
commit
ffe77d36eb
@ -300,15 +300,13 @@ bool SymbolTable::strip( void ) {
|
||||
value_iterator B = Plane.begin(), Bend = Plane.end();
|
||||
while (B != Bend) { // Found nonempty type plane!
|
||||
Value *V = B->second;
|
||||
if (isa<Constant>(V)) {
|
||||
remove(V);
|
||||
RemovedSymbol = true;
|
||||
} else {
|
||||
if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasInternalLinkage()){
|
||||
// Set name to "", removing from symbol table!
|
||||
V->setName("", this);
|
||||
RemovedSymbol = true;
|
||||
}
|
||||
} else if (isa<Constant>(V) ) {
|
||||
remove(V);
|
||||
RemovedSymbol = true;
|
||||
}
|
||||
++B;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user