mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
Shrink some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0104d07ee
commit
acc928042d
@ -766,10 +766,7 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
|||||||
if (GV->hasInitializer()) {
|
if (GV->hasInitializer()) {
|
||||||
Constant* C = cast<Constant>(GV->getInitializer());
|
Constant* C = cast<Constant>(GV->getInitializer());
|
||||||
assert(C && "GlobalVar initializer isn't constant?");
|
assert(C && "GlobalVar initializer isn't constant?");
|
||||||
if (isa<GlobalValue>(C))
|
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
|
||||||
writeOperand(GV->getInitializer(), false, true);
|
|
||||||
else
|
|
||||||
writeOperand(GV->getInitializer(), false, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printInfoComment(*GV);
|
printInfoComment(*GV);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user